Permalink
Browse files

Don't generate invalid UTF-8 in PropEr tests

  • Loading branch information...
davisp committed Jan 8, 2012
1 parent 110c253 commit 55a5d9e2038907a372bfbe7db29a8424d9f818d7
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/jiffy_tests.erl
View
@@ -116,6 +116,9 @@ escaped_char() ->
?LET(C, char(),
case C of
$" -> "\\\"";
+ C when C == 65534 -> 65533;
+ C when C == 65535 -> 65533;
+ C when C > 1114111 -> 1114111;
C -> C
end
).

0 comments on commit 55a5d9e

Please sign in to comment.