B05 engine - difference show

This commit is contained in:
HOME-VM-TOSCHOOL 2023-11-01 22:35:56 +01:00
parent 712846817d
commit 96574d4352
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,7 @@ with open(join_path(sys.argv[3]), "r", newline="", encoding="utf8") as csvfile:
test_out = list(filereader)
is_difference = []
for i, word in enumerate(test_in):
current_state = 0
if len(word) != 0:
@ -74,8 +75,13 @@ for i, word in enumerate(test_in):
print("YES\t", end="")
if "YES" != test_out[i][0]:
print("ERROR", word, end="")
is_difference.append(i)
else:
print("NO\t", end="")
if "NO" != test_out[i][0]:
print("ERROR", word, end="")
is_difference.append(i)
print()
if len(is_difference) != 0:
print(is_difference)