general: Added tests

This commit is contained in:
Dylan Araps 2018-05-18 14:03:22 +10:00
parent b16ff8bc4d
commit fbc029b1b1
3 changed files with 48 additions and 1 deletions

10
tests/test_util.sh Normal file
View 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]}"
}