mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
test-encoding: enable fuzz testing of utf8b roundtrip
This test was written by David R. MacIver <david@drmaciver.com> at the London sprint. We can enable it as the bug in utf8b encoder/decoder has been fixed.
This commit is contained in:
parent
7ae2e7fc0b
commit
988d64c871
@ -272,3 +272,14 @@ Test roundtrip encoding of lookup tables when not using UTF-8 (issue2763)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user