mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-15 08:23:47 -05:00
add tests for _columns_
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user