summaryrefslogtreecommitdiff
path: root/packages/assert.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-05-17 21:19:35 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-17 21:19:35 +0100
commit944b6b1e820542406ccc3fc19808c624a033c608 (patch)
tree81c3381a53456ee3922984714425ffdff87d1c1a /packages/assert.source.sh
parentc7696200b0c5235eb024b912c4185be4cabec1b0 (diff)
refactor
Diffstat (limited to 'packages/assert.source.sh')
-rw-r--r--packages/assert.source.sh2
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