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-21 05:11:05 +0100
commitf6deb276c7c5e7b3617d9ecd35193b43ae32ccbf (patch)
tree4d3fc2fed8a982177bb3495d8f8c8cfb8e71f955 /packages/assert.source.sh
parent5ed55a4adea13db1425f72578c4b524acc13eee5 (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 551d162..c3ad0a6 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