Skip to content

Commit b08444b

Browse files
committed
Test multiple text arguments
1 parent 6a6b4cc commit b08444b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ assert_fmt '\033[;23;4m%s\033[;0m\n' not,em,u xxx
2626
assert_fmt '\033[;23;4m%s\033[;0m\n' not-em,u xxx
2727
assert_fmt '\033[;41m%s\033[;0m\n' bg-red xxx
2828
assert_fmt '\033[;31m%s\033[;0m\n' fg-red xxx
29+
30+
assert "$(printf '\033[;31mone two\033[;0m\n')" "$(fmt fg-red one two)"
31+
assert "$(printf '\033[;31mone_two\033[;0m\n')" "$(IFS=_ fmt fg-red one two)"

0 commit comments

Comments
 (0)