the_silver_searcher/tests/fail/unicode_case_insensitive.t
Adam Dinwoodie 1f2d79ebee Use printf in place of echo in tests
The behaviour of echo is inconsistent between implementations, in
particular regarding whether it expands escapes like `\n`.  Use printf
consistently in test scripts to avoid test failures from inconsistent
echo behaviour.

Fixes #866.
2016-03-15 03:42:19 +00:00

17 lines
389 B
Perl

Setup:
$ . $TESTDIR/../setup.sh
$ printf "hello=你好\n" > test.txt
$ printf "hello=你好\n" >> test.txt
Normal search:
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel 你好
test.txt:1:hello=你好
test.txt:2:hello=你好
Case-insensitive search:
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel -i 你好
test.txt:1:hello=你好
test.txt:2:hello=你好