Skip to content

Commit 9d445ee

Browse files
committed
Add a working test for sorting.
1 parent d620c25 commit 9d445ee

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

regress/sort-dupes.test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description torrentzip a file, sorting the entries, there are case-insensitive name conflicts
2+
return 0
3+
arguments -l sort-dupes.zip
4+
file sort-dupes.zip sort-unsorted-dupes.zip sorted-sorted-dupes.tzip
5+
stdout
6+
Rezipping - sort-dupes.zip
7+
--------------------------------------------------
8+
Adding - ABC (4 bytes)...Done
9+
Adding - DEF (4 bytes)...Done
10+
Adding - abc (4 bytes)...Done
11+
Adding - def (4 bytes)...Done
12+
--------------------------------------------------
13+
Rezipped 4 compressed files totaling 16 bytes.
14+
end-of-inline-data

regress/sort-sorted.tzip

372 Bytes
Binary file not shown.

regress/sort-unsorted.zip

550 Bytes
Binary file not shown.

regress/sort.test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description torrentzip a file, sorting the entries
2+
return 0
3+
arguments -l sort.zip
4+
file sort.zip sort-unsorted.zip sort-sorted.tzip
5+
stdout
6+
Rezipping - sort.zip
7+
--------------------------------------------------
8+
Adding - - (2 bytes)...Done
9+
Adding - 1 (2 bytes)...Done
10+
Adding - a (2 bytes)...Done
11+
Adding - Z (2 bytes)...Done
12+
--------------------------------------------------
13+
Rezipped 4 compressed files totaling 8 bytes.
14+
end-of-inline-data

0 commit comments

Comments
 (0)