Skip to content

Commit a8f6f36

Browse files
ariasunisdht0
authored andcommitted
test: check sort by extension
1 parent 582529c commit a8f6f36

178 files changed

Lines changed: 429 additions & 46 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

devtools/dir-generator.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@ touch icons/man.1 --date=@0
133133
touch icons/marked.md --date=@0
134134
# END test_icons
135135

136+
# BEGIN test_dirs-ext
137+
mkdir -p dirs-ext
138+
mkdir dirs-ext/test
139+
mkdir dirs-ext/abc
140+
mkdir dirs-ext/01.city
141+
mkdir dirs-ext/02.apple
142+
touch dirs-ext/a.txt --date=@0
143+
touch dirs-ext/abc.mp3 --date=@0
144+
touch dirs-ext/ab --date=@0
145+
# END test_dirs_ext
146+
136147
# BEGIN set date
137148
touch --date=@0 ./*;
138149
# END set date

tests/cmd/sort-ext-group-dirs-first.stderr

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
01.city 02.apple abc test ab abc.mp3 a.txt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin.name = "eza"
2+
args = "tests/itest --sort=extension --group-directories-first"

tests/cmd/sort-ext.stderr

Whitespace-only changes.

tests/cmd/sort-ext.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
01.city 02.apple ab abc test abc.mp3 a.txt

tests/cmd/sort-ext.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin.name = "eza"
2+
args = "tests/itest --sort=extension"

tests/gen/long_all_nix.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
drwxr-xr-x - nixbld 1 Jan 1970 dirs-ext
12
drwxr-xr-x - nixbld 1 Jan 1970 git
23
drwxr-xr-x - nixbld 1 Jan 1970 grid
34
drwxr-xr-x - nixbld 1 Jan 1970 group

tests/gen/long_binary_bytes_unix.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- dirs-ext
12
- git
23
- grid
34
- group

tests/gen/long_blocksize_nix.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
drwxr-xr-x - - nixbld 1 Jan 1970 dirs-ext
12
drwxr-xr-x - - nixbld 1 Jan 1970 git
23
drwxr-xr-x - - nixbld 1 Jan 1970 grid
34
drwxr-xr-x - - nixbld 1 Jan 1970 group

0 commit comments

Comments
 (0)