diff options
Diffstat (limited to 'packages/assert.source.sh')
| -rw-r--r-- | packages/assert.source.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/assert.source.sh b/packages/assert.source.sh index 551d1623..c3ad0a6a 100644 --- a/packages/assert.source.sh +++ b/packages/assert.source.sh @@ -1,3 +1,4 @@ +# Unit test for whether 2 given strings equal. assert::equals () { local -r result="$1"; shift local -r expected="$1"; shift @@ -16,6 +17,7 @@ ERROR log VERBOSE "Result in $callee as expected: '$expected'" } +# Unit test for whether a given string is not empty. assert::not_empty () { local -r name="$1"; shift local -r content="$1"; shift |
