php-spark/tools/makeself-2.4.5/test/bashunit/test_example

20 lines
342 B
Plaintext
Raw Normal View History

2021-12-08 23:58:28 +00:00
#!/bin/bash
testEcho() {
assertEqual "$(echo foo)" "foo"
assertReturn "$(echo foo)" 0
}
testTest() {
assert "-e $0"
}
testArithmetic() {
assertGreaterThan "$(( 1 + 1 ))" "1"
assertAtLeast "$(( 1 + 1 ))" "2"
assertLessThan "$(( 1 + 1 ))" "5"
assertAtMost "$(( 1 + 1 ))" "2"
}
source $(dirname $0)/bashunit.bash