# HG changeset patch # User Yuya Nishihara # Date 1447075861 -32400 # Node ID 51fa43a3cd58ceaaf6fa581726fe2eac7c655d18 # Parent 1fa66d3ad28dc8aa0cb2ffb2117e84031b56ac25 test-encoding: enable fuzz testing of utf8b roundtrip This test was written by David R. MacIver at the London sprint. We can enable it as the bug in utf8b encoder/decoder has been fixed. diff -r 1fa66d3ad28d -r 51fa43a3cd58 tests/test-encoding.t --- 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