We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd74582 commit dd4b40fCopy full SHA for dd4b40f
tests/test_doc.sh
@@ -6,7 +6,7 @@ LANG=C.UTF-8
6
7
export FORCE_COLOR=false
8
export STICK_TO_CWD=true
9
-BASH_UNIT="eval ./bash_unit"
+BASH_UNIT="eval ./bash_unit -o"
10
#BASH_UNIT="eval FORCE_COLOR=false ./bash_unit"
11
12
prepare_tests() {
@@ -20,10 +20,10 @@ prepare_tests() {
20
21
while grep -E '^'"$TEST_PATTERN"'$' $remaining >/dev/null
22
do
23
- block=$(($block+1))
+ ((++block))
24
run_doc_test $remaining $swap |& sed '$a\' > $test_output$block
25
doc_to_output $remaining $swap > $expected_output$block
26
- eval 'function test_block_'"$block"'() {
+ eval 'function test_block_'"$(printf %02d $block)"'() {
27
assert "diff -u '"$expected_output$block"' '"$test_output$block"'"
28
}'
29
done
0 commit comments