bash-fun/test/tail_test.sh
tpoindex 1b234ff597 avoid collisions with common /usr/bin/ commands
rename head, tail, zip to lhead, ltail, and lzip to avoid collisions with command unix commands
2019-09-14 20:21:06 +02:00

15 lines
267 B
Bash
Executable file

#! /bin/bash
testLTailFrom10() {
assertEquals "2 3 4 5 6 7 8 9 10" "$(list {1..10} | ltail | unlist)"
}
testLTailFromOneElementList() {
assertEquals "" "$(list 1 | ltail)"
}
testLTailFromEmptyList() {
assertEquals "" "$(list | ltail)"
}
. ./shunit2-init.sh