Skip to content

Commit a27ea34

Browse files
committed
add test for file name sort
1 parent 567174a commit a27ea34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_scan.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,10 @@ def test_base_folder(self, tmp_path, subprocess, options):
146146
"outpage17",
147147
"outpage127",
148148
]
149+
150+
def test_sort_filenames(self, tmp_path, subprocess, options):
151+
assert Scanner.compare_output_names("name1", "name1") == 0
152+
assert Scanner.compare_output_names("name1", "name2") == -1
153+
assert Scanner.compare_output_names("name2", "name1") == 1
154+
assert Scanner.compare_output_names("name1", "name12") == -1
155+
assert Scanner.compare_output_names("name12", "name1") == 1

0 commit comments

Comments
 (0)