blob: 8079dfbc55de487e3fa82fade40df273b6f84bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# $NetBSD: tests.subr,v 1.2 2005/11/24 19:20:18 rillig Exp $
#
# usage: testcase_start <testname>
testcase_start() {
printf " Running testcase %s\\n" "$1"
}
# usage: assert_equal <testname> <expected> <got>
assert_equal() {
case $2 in
"$3") ;;
*) echo "[assert_equal:$1] expected \"$2\", got \"$3\"." 1>&2
return 1;;
esac
}
|