aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-06-06 22:55:27 +0200
committerJonas Maier <jonas@x77.dev>2026-06-06 22:55:27 +0200
commit2e379710ca4ca1739788beb502a55d8bd596dc16 (patch)
tree65461fd6a669e428bbfcb6ae8944f11627e3cb2b /tests
parent6b452e817090dba6c80454a42079fa5c9f83b1cd (diff)
downloadpish-main.tar.gz
regex: submatches now go into variablesHEADmain
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scripts.rs b/tests/scripts.rs
index 2a7a6f8..69a81ce 100644
--- a/tests/scripts.rs
+++ b/tests/scripts.rs
@@ -22,6 +22,11 @@ fn case3_negative_lookahead() {
}
#[test]
+fn case4_submatches() {
+ common::test_case("case4_submatches", include_bytes!("../test-cases/case4_submatches/script.sh"), include_bytes!("../test-cases/case4_submatches/stdout.txt"));
+}
+
+#[test]
fn comment() {
common::test_case("comment", include_bytes!("../test-cases/comment/script.sh"), include_bytes!("../test-cases/comment/stdout.txt"));
}