Browse Source

Don't generate invalid UTF-8 in PropEr tests

pull/11/merge
Paul J. Davis 13 years ago
parent
commit
55a5d9e203
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      test/jiffy_tests.erl

+ 3
- 0
test/jiffy_tests.erl View File

@ -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
).

Loading…
Cancel
Save