Add sort tests for name and ext and lowercase

This commit is contained in:
Benjamin Sago 2017-06-29 14:03:17 +01:00
parent 9d74091195
commit 098788c98e
4 changed files with 79 additions and 4 deletions

View File

@ -0,0 +1,23 @@
#SAVEFILE#
COMPRESSED.ZIP
DOCUMENT.XLSX
IMAGE.PNG
MUSIC.OGG
Makefile
VIDEO.AVI
backup~
compiled.class
compiled.coffee
compiled.js
compiled.o
compressed.tar.gz
compressed.tgz
crypto.asc
crypto.signature
document.pdf
file.tmp
image.svg
lossless.flac
lossless.wav
music.mp3
video.wmv

View File

@ -0,0 +1,23 @@
#SAVEFILE#
backup~
Makefile
crypto.asc
VIDEO.AVI
compiled.class
compiled.coffee
lossless.flac
compressed.tar.gz
compiled.js
music.mp3
compiled.o
MUSIC.OGG
document.pdf
IMAGE.PNG
crypto.signature
image.svg
compressed.tgz
file.tmp
lossless.wav
video.wmv
DOCUMENT.XLSX
COMPRESSED.ZIP

View File

@ -0,0 +1,23 @@
#SAVEFILE#
Makefile
backup~
crypto.asc
VIDEO.AVI
compiled.class
compiled.coffee
lossless.flac
compressed.tar.gz
compiled.js
music.mp3
compiled.o
MUSIC.OGG
document.pdf
IMAGE.PNG
crypto.signature
image.svg
compressed.tgz
file.tmp
lossless.wav
video.wmv
DOCUMENT.XLSX
COMPRESSED.ZIP

View File

@ -79,10 +79,16 @@ 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/specials -l 2>&1 | diff -q - $results/specials || exit 1 $exa $testcases/file-names-exts -1 2>&1 --sort=name | diff -q - $results/file-names-exts-case || exit 1
$exa $testcases/specials -F -l 2>&1 | diff -q - $results/specials_F || 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 -F -l 2>&1 | diff -q - $results/specials_F || exit 1
# Ignores # Ignores