1b234ff597
rename head, tail, zip to lhead, ltail, and lzip to avoid collisions with command unix commands
15 lines
267 B
Bash
Executable file
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
|