From 18f77b8ee5d9c13f49a5c6c23db08d5a73a1d640 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 29 Jan 2022 21:47:49 -0500 Subject: Revert "tests: Add a test for posix-basic alternation" Turns out alternation is not actually part of the POSIX basic regular expression language, it's just a glibc extension. This reverts commit c898af13a671ee92a056467d324f16823594eb1c. --- tests.sh | 5 ----- tests/test_regex_alternation.out | 2 -- 2 files changed, 7 deletions(-) delete mode 100644 tests/test_regex_alternation.out diff --git a/tests.sh b/tests.sh index 2907678..c0a3a79 100755 --- a/tests.sh +++ b/tests.sh @@ -622,7 +622,6 @@ gnu_tests=( test_regex test_regex_parens test_regex_error - test_regex_alternation test_regextype_posix_basic test_regextype_posix_extended @@ -2036,10 +2035,6 @@ 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 deleted file mode 100644 index e2bc098..0000000 --- a/tests/test_regex_alternation.out +++ /dev/null @@ -1,2 +0,0 @@ -basic/a -basic/b -- cgit v1.2.3