brace expansion tests

This commit is contained in:
Chris 2018-06-17 01:18:49 -04:00
parent 04bb4810d3
commit 8e61965af6
1 changed files with 11 additions and 0 deletions

11
test.sh
View File

@ -134,6 +134,17 @@ test_read_sleep() {
assert_equals "$((result+1))" "$SECONDS"
}
test_braces_expansion() {
printf -v result %s {a,{q,x}}c
assert_equals "$result" "acqcxc"
}
test_numeric_sequence() {
printf -v result '%s ' {1..10}
assert_equals "$result" "1 2 3 4 5 6 7 8 9 10 "
}
test_bar() {
result="$(bar 50 10)"
assert_equals "${result//$'\r'}" "[----- ]"