passing new test, need to fix other tests
This commit is contained in:
parent
75e3cc41ef
commit
e2e9f7d12c
|
@ -290,7 +290,10 @@ def _diff_text(left: str, right: str, verbose: int = 0) -> List[str]:
|
||||||
for line in ndiff(right.splitlines(keepends), left.splitlines(keepends))
|
for line in ndiff(right.splitlines(keepends), left.splitlines(keepends))
|
||||||
]
|
]
|
||||||
for i in range(len(explanation)):
|
for i in range(len(explanation)):
|
||||||
|
explanation[i] = explanation[i].replace("+ ", "+ \t")
|
||||||
explanation[i] = explanation[i].replace(" ", "\t")
|
explanation[i] = explanation[i].replace(" ", "\t")
|
||||||
|
print("**********************LOOK HERE***********************")
|
||||||
|
print(explanation)
|
||||||
return explanation
|
return explanation
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -272,10 +272,10 @@ TESTCASES = [
|
||||||
""",
|
""",
|
||||||
"""
|
"""
|
||||||
> assert result == desired
|
> assert result == desired
|
||||||
E AssertionError: assert 'spam\\tbacon\\n\\teggs love' == 'spam bacon eggs love'
|
E AssertionError: assert 'spam bacon\\n eggs love' == 'spam bacon eggs love'
|
||||||
E - spam bacon eggs love
|
E - spam bacon eggs love
|
||||||
E + spam bacon
|
E + spam\tbacon
|
||||||
E + eggs love
|
E + \teggs love
|
||||||
""",
|
""",
|
||||||
id='Test "not in" string',
|
id='Test "not in" string',
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue