code movement in Tests.
This commit is contained in:
parent
a16bdbba86
commit
1c52e0e984
1 changed files with 12 additions and 10 deletions
22
Tests.hs
22
Tests.hs
|
@ -175,17 +175,19 @@ prop_handshake_initiate = do
|
|||
|
||||
assertEq expected got = unless (expected == got) $ error ("got " ++ show got ++ " but was expecting " ++ show expected)
|
||||
|
||||
tests_marshalling = testGroup "Marshalling"
|
||||
[ testProperty "Header" prop_header_marshalling_id
|
||||
, testProperty "Handshake" prop_handshake_marshalling_id
|
||||
]
|
||||
|
||||
tests_handshake = testGroup "Handshakes"
|
||||
[ testProperty "setup" (monadicIO prop_pipe_work)
|
||||
, testProperty "initiate" (monadicIO prop_handshake_initiate)
|
||||
]
|
||||
|
||||
main = defaultMain
|
||||
[ tests_marshalling
|
||||
, tests_handshake
|
||||
]
|
||||
where
|
||||
-- lowlevel tests to check the packet marshalling.
|
||||
tests_marshalling = testGroup "Marshalling"
|
||||
[ testProperty "Header" prop_header_marshalling_id
|
||||
, testProperty "Handshake" prop_handshake_marshalling_id
|
||||
]
|
||||
|
||||
-- high level tests between a client and server with fake ciphers.
|
||||
tests_handshake = testGroup "Handshakes"
|
||||
[ testProperty "setup" (monadicIO prop_pipe_work)
|
||||
, testProperty "initiate" (monadicIO prop_handshake_initiate)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue