summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-01-30 10:56:49 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-01-30 10:56:49 -0500
commit9278a01d858d78a2e19e6da7388caa76bc1fc849 (patch)
tree633288f8bc1369050a55b4e380ea845a52f1087e /tests.sh
parent18f77b8ee5d9c13f49a5c6c23db08d5a73a1d640 (diff)
downloadbfs-9278a01d858d78a2e19e6da7388caa76bc1fc849.tar.xz
parse: Add support for ed and sed regexes
They're apparently the same as POSIX basic regexes.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index c0a3a79..b9e21a9 100755
--- a/tests.sh
+++ b/tests.sh
@@ -625,6 +625,8 @@ gnu_tests=(
test_regextype_posix_basic
test_regextype_posix_extended
+ test_regextype_ed
+ test_regextype_sed
test_samefile
test_samefile_symlink
@@ -2040,6 +2042,16 @@ function test_regextype_posix_extended() {
bfs_diff -regextype posix-extended -regex '\./(\()'
}
+function test_regextype_ed() {
+ cd weirdnames
+ bfs_diff -regextype ed -regex '\./\((\)'
+}
+
+function test_regextype_sed() {
+ cd weirdnames
+ bfs_diff -regextype sed -regex '\./\((\)'
+}
+
function test_d_path() {
bfs_diff -d basic
}