mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 22:06:26 +00:00
Add sort tests for name and ext and lowercase
This commit is contained in:
parent
9d74091195
commit
098788c98e
23
xtests/file-names-exts-case
Normal file
23
xtests/file-names-exts-case
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[38;5;244m#SAVEFILE#[0m
|
||||||
|
[31mCOMPRESSED.ZIP[0m
|
||||||
|
[38;5;105mDOCUMENT.XLSX[0m
|
||||||
|
[38;5;133mIMAGE.PNG[0m
|
||||||
|
[38;5;92mMUSIC.OGG[0m
|
||||||
|
[1;4;33mMakefile[0m
|
||||||
|
[38;5;135mVIDEO.AVI[0m
|
||||||
|
[38;5;244mbackup~[0m
|
||||||
|
[38;5;137mcompiled.class[0m
|
||||||
|
compiled.coffee
|
||||||
|
[38;5;137mcompiled.js[0m
|
||||||
|
[38;5;137mcompiled.o[0m
|
||||||
|
[31mcompressed.tar.gz[0m
|
||||||
|
[31mcompressed.tgz[0m
|
||||||
|
[38;5;109mcrypto.asc[0m
|
||||||
|
[38;5;109mcrypto.signature[0m
|
||||||
|
[38;5;105mdocument.pdf[0m
|
||||||
|
[38;5;244mfile.tmp[0m
|
||||||
|
[38;5;133mimage.svg[0m
|
||||||
|
[38;5;93mlossless.flac[0m
|
||||||
|
[38;5;93mlossless.wav[0m
|
||||||
|
[38;5;92mmusic.mp3[0m
|
||||||
|
[38;5;135mvideo.wmv[0m
|
23
xtests/file-names-exts-ext
Normal file
23
xtests/file-names-exts-ext
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[38;5;244m#SAVEFILE#[0m
|
||||||
|
[38;5;244mbackup~[0m
|
||||||
|
[1;4;33mMakefile[0m
|
||||||
|
[38;5;109mcrypto.asc[0m
|
||||||
|
[38;5;135mVIDEO.AVI[0m
|
||||||
|
[38;5;137mcompiled.class[0m
|
||||||
|
compiled.coffee
|
||||||
|
[38;5;93mlossless.flac[0m
|
||||||
|
[31mcompressed.tar.gz[0m
|
||||||
|
[38;5;137mcompiled.js[0m
|
||||||
|
[38;5;92mmusic.mp3[0m
|
||||||
|
[38;5;137mcompiled.o[0m
|
||||||
|
[38;5;92mMUSIC.OGG[0m
|
||||||
|
[38;5;105mdocument.pdf[0m
|
||||||
|
[38;5;133mIMAGE.PNG[0m
|
||||||
|
[38;5;109mcrypto.signature[0m
|
||||||
|
[38;5;133mimage.svg[0m
|
||||||
|
[31mcompressed.tgz[0m
|
||||||
|
[38;5;244mfile.tmp[0m
|
||||||
|
[38;5;93mlossless.wav[0m
|
||||||
|
[38;5;135mvideo.wmv[0m
|
||||||
|
[38;5;105mDOCUMENT.XLSX[0m
|
||||||
|
[31mCOMPRESSED.ZIP[0m
|
23
xtests/file-names-exts-ext-case
Normal file
23
xtests/file-names-exts-ext-case
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[38;5;244m#SAVEFILE#[0m
|
||||||
|
[1;4;33mMakefile[0m
|
||||||
|
[38;5;244mbackup~[0m
|
||||||
|
[38;5;109mcrypto.asc[0m
|
||||||
|
[38;5;135mVIDEO.AVI[0m
|
||||||
|
[38;5;137mcompiled.class[0m
|
||||||
|
compiled.coffee
|
||||||
|
[38;5;93mlossless.flac[0m
|
||||||
|
[31mcompressed.tar.gz[0m
|
||||||
|
[38;5;137mcompiled.js[0m
|
||||||
|
[38;5;92mmusic.mp3[0m
|
||||||
|
[38;5;137mcompiled.o[0m
|
||||||
|
[38;5;92mMUSIC.OGG[0m
|
||||||
|
[38;5;105mdocument.pdf[0m
|
||||||
|
[38;5;133mIMAGE.PNG[0m
|
||||||
|
[38;5;109mcrypto.signature[0m
|
||||||
|
[38;5;133mimage.svg[0m
|
||||||
|
[31mcompressed.tgz[0m
|
||||||
|
[38;5;244mfile.tmp[0m
|
||||||
|
[38;5;93mlossless.wav[0m
|
||||||
|
[38;5;135mvideo.wmv[0m
|
||||||
|
[38;5;105mDOCUMENT.XLSX[0m
|
||||||
|
[31mCOMPRESSED.ZIP[0m
|
@ -79,8 +79,14 @@ COLUMNS=80 $exa $testcases/file-names -R 2>&1 | diff -q - $results/file_names_R
|
|||||||
$exa $testcases/file-names/* 2>/dev/null
|
$exa $testcases/file-names/* 2>/dev/null
|
||||||
|
|
||||||
|
|
||||||
# File types
|
# Sorting and extension file types
|
||||||
$exa $testcases/file-names-exts -1 2>&1 --sort=Name | diff -q - $results/file-names-exts || exit 1
|
$exa $testcases/file-names-exts -1 2>&1 --sort=Name | diff -q - $results/file-names-exts || exit 1
|
||||||
|
$exa $testcases/file-names-exts -1 2>&1 --sort=name | diff -q - $results/file-names-exts-case || exit 1
|
||||||
|
$exa $testcases/file-names-exts -1 2>&1 --sort=Ext | diff -q - $results/file-names-exts-ext || exit 1
|
||||||
|
$exa $testcases/file-names-exts -1 2>&1 --sort=ext | diff -q - $results/file-names-exts-ext-case || exit 1
|
||||||
|
|
||||||
|
|
||||||
|
# Other file types
|
||||||
$exa $testcases/specials -l 2>&1 | diff -q - $results/specials || exit 1
|
$exa $testcases/specials -l 2>&1 | diff -q - $results/specials || exit 1
|
||||||
$exa $testcases/specials -F -l 2>&1 | diff -q - $results/specials_F || exit 1
|
$exa $testcases/specials -F -l 2>&1 | diff -q - $results/specials_F || exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user