Vendoring bats libraries.

Signed-off-by: Chad Metcalf <chad@docker.com>
This commit is contained in:
Chad Metcalf
2020-08-08 12:46:22 -07:00
committed by Chad Metcalf
parent 5185cedf4e
commit 6565a1f745
48 changed files with 4646 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bats
load test_helper
@test 'batslib_is_single_line() <string...>: returns 0 if all <string...> are single-line' {
run batslib_is_single_line 'a' $'b\n' 'c'
[ "$status" -eq 0 ]
}
@test 'batslib_is_single_line() <string...>: returns 1 if at least one of <string...> is longer than one line' {
run batslib_is_single_line 'a' $'b\nb' 'c'
[ "$status" -eq 1 ]
}