brace expansion tests
This commit is contained in:
parent
04bb4810d3
commit
8e61965af6
11
test.sh
11
test.sh
|
@ -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'}" "[----- ]"
|
||||
|
|
Loading…
Reference in New Issue