tests/test-encoding.t
changeset 26966 51fa43a3cd58
parent 22554 bfc50ff55f3f
child 33262 8e6f4939a69a
--- a/tests/test-encoding.t	Sun Nov 01 17:42:03 2015 +0900
+++ b/tests/test-encoding.t	Mon Nov 09 22:31:01 2015 +0900
@@ -272,3 +272,14 @@
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
 
   $ cd ..
+
+Test roundtrip encoding/decoding of utf8b for generated data
+
+#if hypothesis
+
+  >>> from hypothesishelpers import *
+  >>> from mercurial import encoding
+  >>> roundtrips(st.binary(), encoding.fromutf8b, encoding.toutf8b)
+  Round trip OK
+
+#endif