-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b2bffe
commit 35905d1
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,7 @@ def test9(): | |
"Rupert Grint", | ||
"Daniel Radcliffe", | ||
"Emma Watson", | ||
"Emma Watson", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
curiouskiwi
Contributor
|
||
], | ||
ordered=True, | ||
) | ||
|
@@ -221,14 +222,17 @@ def check_single_col(actual, expected, ordered=False): | |
# Get data from column | ||
try: | ||
result = [str(list(row.values())[0]) for row in actual] | ||
result = result if ordered else set(result) | ||
except IndexError: | ||
return None | ||
|
||
# Check column data against expected values | ||
expected = [str(value) for value in expected] | ||
|
||
# If unordered, sort both before checking | ||
if not ordered: | ||
expected = set(expected) | ||
result.sort() | ||
expected.sort() | ||
|
||
if result != expected: | ||
raise check50.Mismatch("\n".join(expected), "\n".join(list(result))) | ||
|
||
|
Binary file not shown.
Is there supposed to be a duplicate of Emma Watson?