Bryan O'Sullivan avatar Bryan O'Sullivan committed fc7d82d

Fix test that relied on the disappeared encodeASCII

Comments (0)

Files changed (1)

tests/Properties.hs

 prop_reverse_stream t  = (S.reverse . S.reverseStream) t == t
 prop_singleton c       = [c] == (unpack . T.singleton) c
 
-prop_ascii t           = E.decodeASCII (E.encodeASCII a) == a
+prop_ascii t           = E.decodeASCII (E.encodeUtf8 a) == a
     where a            = T.map (\c -> chr (ord c `mod` 128)) t
 prop_utf8              = (E.decodeUtf8 . E.encodeUtf8) `eq` id
 prop_utf16LE           = (E.decodeUtf16LE . E.encodeUtf16LE) `eq` id
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.