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

20 lines
342 B
Bash
Executable File

#!/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