This commit is contained in:
Eric Freese
2016-02-05 15:14:08 -07:00
parent 7dc9e0f926
commit 775dd20706
58 changed files with 8564 additions and 739 deletions

View File

@@ -0,0 +1,27 @@
#! /bin/sh
# available as examples/math_test.sh
testAdding()
{
result=`add_generic 1 2`
assertEquals \
"the result of '${result}' was wrong" \
3 "${result}"
# disable non-generic tests
[ -z "${BASH_VERSION:-}" ] && startSkipping
result=`add_bash 1 2`
assertEquals \
"the result of '${result}' was wrong" \
3 "${result}"
}
oneTimeSetUp()
{
# load include to test
. ./math.inc
}
# load and run shUnit2
. ../src/shunit2