tests: add tests for functionality

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-16 18:01:20 -05:00
parent 3f5a022970
commit ff8ccd2801
5 changed files with 280 additions and 0 deletions

View File

@@ -151,6 +151,10 @@ assert_output_contains() {
assert_equal "$count" "$found"
}
assert_output_not_contains() {
assert_output_contains "$1" 0
}
# ShellCheck doesn't know about $lines from Bats
assert_line() {
if [[ "$1" -ge 0 ]] 2>/dev/null; then