aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-06-02 22:00:57 +0200
committerJonas Maier <jonas@x77.dev>2026-06-02 22:00:57 +0200
commit10defcf9f7132bdcc88c1fe32d9550a0d5952042 (patch)
treea12085cedd489bec1e73abb2c368474471894d42 /tests
parentdbca276ac60af603209f62dcc2e0e1fcfbebae11 (diff)
downloadpish-10defcf9f7132bdcc88c1fe32d9550a0d5952042.tar.gz
split lookahead tests into positive and negative
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/scripts.rs b/tests/scripts.rs
index 945a506..2a7a6f8 100644
--- a/tests/scripts.rs
+++ b/tests/scripts.rs
@@ -12,8 +12,13 @@ fn case1() {
}
#[test]
-fn case2_lookahead() {
- common::test_case("case2_lookahead", include_bytes!("../test-cases/case2_lookahead/script.sh"), include_bytes!("../test-cases/case2_lookahead/stdout.txt"));
+fn case2_positive_lookahead() {
+ common::test_case("case2_positive_lookahead", include_bytes!("../test-cases/case2_positive_lookahead/script.sh"), include_bytes!("../test-cases/case2_positive_lookahead/stdout.txt"));
+}
+
+#[test]
+fn case3_negative_lookahead() {
+ common::test_case("case3_negative_lookahead", include_bytes!("../test-cases/case3_negative_lookahead/script.sh"), include_bytes!("../test-cases/case3_negative_lookahead/stdout.txt"));
}
#[test]