@@ -40,7 +40,9 @@ tests =
40
40
let str = [toEnum 55296 , toEnum 55297 ]
41
41
encoded = encodeWithTE utf16le str
42
42
decoded = decodeWithTE utf16le =<< encoded
43
- #if __GLASGOW_HASKELL__ >= 910
43
+ #if __GLASGOW_HASKELL__ >= 912
44
+ in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
45
+ #elif __GLASGOW_HASKELL__ >= 910
44
46
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )\n " ) Nothing ))
45
47
#elif __GLASGOW_HASKELL__ >= 904
46
48
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
@@ -72,7 +74,9 @@ tests =
72
74
let str = [toEnum 0xDFF0 , toEnum 0xDFF2 ]
73
75
encoded = encodeWithTE (mkUTF8 RoundtripFailure ) str
74
76
decoded = decodeWithTE (mkUTF8 RoundtripFailure ) =<< encoded
75
- #if __GLASGOW_HASKELL__ >= 910
77
+ #if __GLASGOW_HASKELL__ >= 912
78
+ in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
79
+ #elif __GLASGOW_HASKELL__ >= 910
76
80
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )\n " ) Nothing ))
77
81
#elif __GLASGOW_HASKELL__ >= 904
78
82
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
0 commit comments