summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-02 11:50:53 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-02 11:50:53 -0500
commitd83ffb41c7f5d42bfb43a19e38ab3d1331f0d86e (patch)
tree5fb8a6cf29feaf875740cd44291b29ab4e22ee85 /tests
parent6b1ecc327f2a1931342ecee1bebc247fa455c678 (diff)
downloadbfs-d83ffb41c7f5d42bfb43a19e38ab3d1331f0d86e.tar.xz
tests: Add tests for syntactically invalid globs
Diffstat (limited to 'tests')
-rw-r--r--tests/test_X.out2
-rw-r--r--tests/test_files0_from_file.out3
-rw-r--r--tests/test_files0_from_stdin.out3
-rw-r--r--tests/test_follow_comma.out2
-rw-r--r--tests/test_name_backslash.out0
-rw-r--r--tests/test_name_bracket.out1
-rw-r--r--tests/test_name_character_class.out3
-rw-r--r--tests/test_name_double_backslash.out1
-rw-r--r--tests/test_nohidden.out2
-rw-r--r--tests/test_nohidden_depth.out2
-rw-r--r--tests/test_printx.out2
-rw-r--r--tests/test_s.out1
12 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_X.out b/tests/test_X.out
index 008297b..52f0278 100644
--- a/tests/test_X.out
+++ b/tests/test_X.out
@@ -7,6 +7,7 @@ weirdnames/)
weirdnames/,
weirdnames/-
weirdnames/...
+weirdnames/[
weirdnames/!-/e
weirdnames/!/d
weirdnames/(-/c
@@ -15,3 +16,4 @@ weirdnames/)/g
weirdnames/,/f
weirdnames/-/a
weirdnames/.../h
+weirdnames/[/k
diff --git a/tests/test_files0_from_file.out b/tests/test_files0_from_file.out
index 3648854..ac8aa45 100644
--- a/tests/test_files0_from_file.out
+++ b/tests/test_files0_from_file.out
@@ -7,6 +7,7 @@
,
-
...
+[
\
/j
/j
@@ -26,5 +27,7 @@
-/a
.../h
.../h
+[/k
+[/k
\/i
\/i
diff --git a/tests/test_files0_from_stdin.out b/tests/test_files0_from_stdin.out
index 3648854..ac8aa45 100644
--- a/tests/test_files0_from_stdin.out
+++ b/tests/test_files0_from_stdin.out
@@ -7,6 +7,7 @@
,
-
...
+[
\
/j
/j
@@ -26,5 +27,7 @@
-/a
.../h
.../h
+[/k
+[/k
\/i
\/i
diff --git a/tests/test_follow_comma.out b/tests/test_follow_comma.out
index 8b90e76..64d8c51 100644
--- a/tests/test_follow_comma.out
+++ b/tests/test_follow_comma.out
@@ -8,6 +8,7 @@
./,
./-
./...
+./[
./\
./ /j
./!-/e
@@ -18,4 +19,5 @@
./,/f
./-/a
./.../h
+./[/k
./\/i
diff --git a/tests/test_name_backslash.out b/tests/test_name_backslash.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test_name_backslash.out
diff --git a/tests/test_name_bracket.out b/tests/test_name_bracket.out
new file mode 100644
index 0000000..5ff3c0c
--- /dev/null
+++ b/tests/test_name_bracket.out
@@ -0,0 +1 @@
+weirdnames/[
diff --git a/tests/test_name_character_class.out b/tests/test_name_character_class.out
new file mode 100644
index 0000000..e9d47b1
--- /dev/null
+++ b/tests/test_name_character_class.out
@@ -0,0 +1,3 @@
+basic/j/foo
+basic/k/foo
+basic/l/foo
diff --git a/tests/test_name_double_backslash.out b/tests/test_name_double_backslash.out
new file mode 100644
index 0000000..45ceda0
--- /dev/null
+++ b/tests/test_name_double_backslash.out
@@ -0,0 +1 @@
+weirdnames/\
diff --git a/tests/test_nohidden.out b/tests/test_nohidden.out
index d2a9690..0c9b73d 100644
--- a/tests/test_nohidden.out
+++ b/tests/test_nohidden.out
@@ -7,6 +7,7 @@ weirdnames/(-
weirdnames/)
weirdnames/,
weirdnames/-
+weirdnames/[
weirdnames/\
weirdnames/ /j
weirdnames/!-/e
@@ -16,4 +17,5 @@ weirdnames/(/b
weirdnames/)/g
weirdnames/,/f
weirdnames/-/a
+weirdnames/[/k
weirdnames/\/i
diff --git a/tests/test_nohidden_depth.out b/tests/test_nohidden_depth.out
index d2a9690..0c9b73d 100644
--- a/tests/test_nohidden_depth.out
+++ b/tests/test_nohidden_depth.out
@@ -7,6 +7,7 @@ weirdnames/(-
weirdnames/)
weirdnames/,
weirdnames/-
+weirdnames/[
weirdnames/\
weirdnames/ /j
weirdnames/!-/e
@@ -16,4 +17,5 @@ weirdnames/(/b
weirdnames/)/g
weirdnames/,/f
weirdnames/-/a
+weirdnames/[/k
weirdnames/\/i
diff --git a/tests/test_printx.out b/tests/test_printx.out
index 53c7547..dd87a45 100644
--- a/tests/test_printx.out
+++ b/tests/test_printx.out
@@ -7,6 +7,7 @@ weirdnames/)
weirdnames/,
weirdnames/-
weirdnames/...
+weirdnames/[
weirdnames/\
weirdnames/\\
weirdnames/!-/e
@@ -17,5 +18,6 @@ weirdnames/)/g
weirdnames/,/f
weirdnames/-/a
weirdnames/.../h
+weirdnames/[/k
weirdnames/\ /j
weirdnames/\\/i
diff --git a/tests/test_s.out b/tests/test_s.out
index e736cb5..6b790c2 100644
--- a/tests/test_s.out
+++ b/tests/test_s.out
@@ -8,4 +8,5 @@ weirdnames/)
weirdnames/,
weirdnames/-
weirdnames/...
+weirdnames/[
weirdnames/\