diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-01-29 17:08:33 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-01-29 21:40:38 -0500 |
commit | c898af13a671ee92a056467d324f16823594eb1c (patch) | |
tree | cea0ed631f4bc58c79139b33756e55f4881e797d | |
parent | 08fa9bdae7e550666d5bc6ca7d089f70bd7f3cf1 (diff) | |
download | bfs-c898af13a671ee92a056467d324f16823594eb1c.tar.xz |
tests: Add a test for posix-basic alternation
-rwxr-xr-x | tests.sh | 5 | ||||
-rw-r--r-- | tests/test_regex_alternation.out | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -622,6 +622,7 @@ gnu_tests=( test_regex test_regex_parens test_regex_error + test_regex_alternation test_regextype_posix_basic test_regextype_posix_extended @@ -2035,6 +2036,10 @@ function test_regextype_posix_basic() { bfs_diff -regextype posix-basic -regex '\./\((\)' } +function test_regex_alternation() { + bfs_diff basic -regextype posix-basic -regex 'basic/\(a\|b\)' +} + function test_regextype_posix_extended() { cd weirdnames bfs_diff -regextype posix-extended -regex '\./(\()' diff --git a/tests/test_regex_alternation.out b/tests/test_regex_alternation.out new file mode 100644 index 0000000..e2bc098 --- /dev/null +++ b/tests/test_regex_alternation.out @@ -0,0 +1,2 @@ +basic/a +basic/b |