module Octet where
+import Test.HUnit
+
import Bit
-- An Octet consists of eight bits. For our purposes, the most
-- The octet with the greatest possible value.
max_octet :: Octet
max_octet = Octet One One One One One One One One
+
+
+
+-- HUnit Tests
+test_octet_from_int1 =
+ TestCase $ assertEqual "octet_from_int 128 should parse as 10000000" oct1 (octet_from_int 128)
+ where
+ oct1 = Octet One Zero Zero Zero Zero Zero Zero Zero
+
+
+octet_tests = [ test_octet_from_int1 ]