aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/test.rs')
-rw-r--r--src/parse/test.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/parse/test.rs b/src/parse/test.rs
index 45f980a..99b4e21 100644
--- a/src/parse/test.rs
+++ b/src/parse/test.rs
@@ -180,7 +180,13 @@ fn pipe_on_new_line() {
#[test]
fn semicolon() {
- parse_test(parse(b"x ; y"), todo!());
+ parse_test(
+ parse(b"fun f { x ; y }"),
+ decl(
+ estr(b"f"),
+ block([pipes([cmd([estr(b"x")])]), pipes([cmd([estr(b"y")])])]),
+ ),
+ );
}
#[test]
@@ -201,4 +207,4 @@ fn if_else() {
#[test]
fn simple_while() {
parse_test(parse(b"while cond { x }"), todo!());
-} \ No newline at end of file
+}