couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [03/50] [abbrv] git commit: Don't generate invalid UTF-8 in PropEr tests
Date Fri, 17 Jan 2014 22:11:34 GMT
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 <paul.joseph.davis@gmail.com>
Authored: Sun Jan 8 14:43:26 2012 -0600
Committer: Paul J. Davis <paul.joseph.davis@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
     ).


Mime
View raw message