From 4b9592f93a68f88152b390898004e5e54b540cae Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Dec 2016 12:38:19 -0500 Subject: Implement -regex, -iregex, and -regextype/-E --- tests.sh | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index b880612..afd7275 100755 --- a/tests.sh +++ b/tests.sh @@ -550,7 +550,35 @@ function test_0100() { bfs_diff /// -maxdepth 0 -execdir echo '{}' ';' } -for i in {1..100}; do +function test_0101() { + bfs_diff basic -regex 'basic/./.' +} + +function test_0102() { + bfs_diff basic -iregex 'basic/[A-Z]/[a-z]' +} + +function test_0103() { + cd weirdnames + bfs_diff -regex '\./\((\)' +} + +function test_0104() { + cd weirdnames + bfs_diff -E -regex '\./(\()' +} + +function test_0105() { + cd weirdnames + bfs_diff -regextype posix-basic -regex '\./\((\)' +} + +function test_0106() { + cd weirdnames + bfs_diff -regextype posix-extended -regex '\./(\()' +} + +for i in {1..106}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then -- cgit v1.2.3