@@ -42,6 +42,7 @@ prop_ascii t = E.decodeASCII (E.encodeASCII a) == a
42 where a = T.map (\c -> chr (ord c `mod` 128)) t
42 where a = T.map (\c -> chr (ord c `mod` 128)) t
43prop_utf8 = (E.decodeUtf8 . E.encodeUtf8) `eq` id
43prop_utf8 = (E.decodeUtf8 . E.encodeUtf8) `eq` id
44prop_utf16LE = (E.decodeUtf16LE . E.encodeUtf16LE) `eq` id
44prop_utf16LE = (E.decodeUtf16LE . E.encodeUtf16LE) `eq` id
45+prop_utf16BE = (E.decodeUtf16BE . E.encodeUtf16BE) `eq` id
46-- Do two functions give the same answer?
47-- Do two functions give the same answer?
47eq :: (Eq a) => (t -> a) -> (t -> a) -> t -> Bool
48eq :: (Eq a) => (t -> a) -> (t -> a) -> t -> Bool
@@ -233,6 +234,7 @@ tests = [
233 ("prop_ascii", mytest prop_ascii),
234 ("prop_ascii", mytest prop_ascii),
234 ("prop_utf8", mytest prop_utf8),
235 ("prop_utf8", mytest prop_utf8),
235 ("prop_utf16LE", mytest prop_utf16LE),
236 ("prop_utf16LE", mytest prop_utf16LE),
237+ ("prop_utf16BE", mytest prop_utf16BE),
237 ("prop_cons", mytest prop_cons),
239 ("prop_cons", mytest prop_cons),
238 ("prop_snoc", mytest prop_snoc),
240 ("prop_snoc", mytest prop_snoc),