mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-22 10:42:11 +10:00
Change is_sorted.py (#556)
This commit is contained in:
@@ -15,4 +15,8 @@ for category in categories:
|
|||||||
content = json.loads(cat_file.read())
|
content = json.loads(cat_file.read())
|
||||||
if content != sorted(content, key=str.casefold):
|
if content != sorted(content, key=str.casefold):
|
||||||
print(f"{category} is not sorted correctly")
|
print(f"{category} is not sorted correctly")
|
||||||
|
print("It should look like")
|
||||||
|
print(sorted(content, key=str.casefold))
|
||||||
|
print("But it is")
|
||||||
|
print(content)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user