summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index c0a3a79..2907678 100755
--- a/tests.sh
+++ b/tests.sh
@@ -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 '\./(\()'