You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:11:34 UTC
[03/50] [abbrv] git commit: Don't generate invalid UTF-8 in PropEr
tests
Don't generate invalid UTF-8 in PropEr tests
Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/55a5d9e2
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/55a5d9e2
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/55a5d9e2
Branch: refs/heads/import
Commit: 55a5d9e2038907a372bfbe7db29a8424d9f818d7
Parents: 110c253
Author: Paul J. Davis <pa...@gmail.com>
Authored: Sun Jan 8 14:43:26 2012 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Sun Jan 8 14:43:26 2012 -0600
----------------------------------------------------------------------
test/jiffy_tests.erl | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/55a5d9e2/test/jiffy_tests.erl
----------------------------------------------------------------------
diff --git a/test/jiffy_tests.erl b/test/jiffy_tests.erl
index f7075c0..b3aef81 100644
--- a/test/jiffy_tests.erl
+++ b/test/jiffy_tests.erl
@@ -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
).