octet_tests :: TestTree
octet_tests =
testGroup "Octet Tests" [
- test_octet_from_int1,
+ test_octet_to_enum1,
test_octet_mask1,
test_octet_mask2 ]
-- HUnit Tests
-test_octet_from_int1 :: TestTree
-test_octet_from_int1 =
+test_octet_to_enum1 :: TestTree
+test_octet_to_enum1 =
testCase desc $ actual @?= expected
where
- desc = "octet_from_int 128 should parse as 10000000"
+ desc = "toEnum 128 should parse as 10000000"
expected = Octet B.One B.Zero B.Zero B.Zero B.Zero B.Zero B.Zero B.Zero
actual = toEnum 128 :: Octet