Skip to content

Commit dda8aa1

Browse files
[test] xfail #16
1 parent d835069 commit dda8aa1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_examples.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from hypothesis import given, settings
66
from hypothesis.strategies import integers
7-
from pytest import raises
7+
from pytest import mark, raises
88
from test_hypotheses import json
99

1010
from partial_json_parser import *
@@ -106,6 +106,13 @@ def test_fix():
106106
fix("-")
107107

108108

109+
@mark.xfail()
110+
def test_fix_fast():
111+
assert fix_fast('["a", "b', ~STR) == ('["a"', "]")
112+
assert fix_fast('["a","b', ~STR) == ('["a"', "]")
113+
assert fix_fast('["a" ,"b', ~STR) == ('["a" ', "]")
114+
115+
109116
def consistent(json_string, allow):
110117
try:
111118
res = fix(json_string, allow)

0 commit comments

Comments
 (0)