lintball in build-env

This commit is contained in:
Michael Hobbs
2014-12-15 09:54:06 -08:00
parent 58d0bc983a
commit f9b7d5378d
3 changed files with 10 additions and 9 deletions

View File

@@ -1,10 +1,11 @@
#!/usr/bin/env bash
# constants
TEST_APP=my-cool-guy-test-app
# test functions
flunk() {
{ if [ "$#" -eq 0 ]; then cat -
else echo "$@"
else echo "$*"
fi
}
return 1
@@ -71,8 +72,8 @@ refute_line() {
}
assert() {
if ! "$@"; then
flunk "failed: $@"
if ! "$*"; then
flunk "failed: $*"
fi
}