add tests for _columns_

This commit is contained in:
Nathaniel Landau
2022-04-30 14:59:59 -04:00
parent ba073edcd0
commit 3c3b8e6337
2 changed files with 15 additions and 6 deletions

View File

@@ -250,3 +250,13 @@ teardown() {
assert_file_not_exist "${LOGFILE}"
}
@test "_columns_: key/value" {
run _columns_ "key" "value"
assert_output --regexp "^key.*value"
}
@test "_columns_: indented key/value" {
run _columns_ "key" "value" 1
assert_output --regexp "^ key.*value"
}