Add tests

This commit is contained in:
whonore 2020-10-23 15:08:12 -04:00
parent 2708360fb5
commit c8ed69368e
3 changed files with 51 additions and 0 deletions

View File

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

View File

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

View File

@ -136,3 +136,22 @@ stdout = { string = "plum\npear\npeach" }
stderr = { empty = true } stderr = { empty = true }
status = 0 status = 0
tags = [ 'oneline', 'sort', 'dates' ] tags = [ 'oneline', 'sort', 'dates' ]
# sorting with arguments specified
[[cmd]]
name = "exa -Gr --sort=name * sorts by file name in reverse order"
shell = "exa -Gr --sort=name /testcases/file-names-exts/*"
environment = { COLUMNS = "80" }
stdout = { file = "outputs/exts_grid_sort_name_reverse.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'grid', 'sort', 'reverse' ]
[[cmd]]
name = "exa -1r --sort=name * sorts by file name in reverse order"
shell = "exa -1r --sort=name /testcases/file-name-exts/*"
stdout = { file = "outputs/exts_oneline_sort_name_reverse.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'oneline', 'sort', 'reverse' ]