passing new test, need to fix other tests

This commit is contained in:
Maddie Thai-Tang 2023-05-03 10:40:05 -04:00
parent 75e3cc41ef
commit e2e9f7d12c
2 changed files with 6 additions and 3 deletions

View File

@ -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 i in range(len(explanation)):
explanation[i] = explanation[i].replace("+ ", "+ \t")
explanation[i] = explanation[i].replace(" ", "\t")
print("**********************LOOK HERE***********************")
print(explanation)
return explanation

View File

@ -272,10 +272,10 @@ TESTCASES = [
""",
"""
> 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
E + eggs love
E + spam\tbacon
E + \teggs love
""",
id='Test "not in" string',
),