general: Added tests
This commit is contained in:
parent
b16ff8bc4d
commit
fbc029b1b1
3 changed files with 48 additions and 1 deletions
10
tests/test_util.sh
Normal file
10
tests/test_util.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Test util functions.
|
||||
|
||||
assert_equals() {
|
||||
# Test equality.
|
||||
local status
|
||||
[[ "$1" == "$2" ]] && status="✔"
|
||||
printf "%s\\n" " ${status:-✖} : ${FUNCNAME[1]}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue