From 448a7dd10fbd369e56e7a17e650b4d1c760e3bd1 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Sat, 7 Mar 2026 13:17:20 +0100 Subject: fix parsing of simple variables --- src/parse/test.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/parse/test.rs') diff --git a/src/parse/test.rs b/src/parse/test.rs index 2ea3f9c..e1c2077 100644 --- a/src/parse/test.rs +++ b/src/parse/test.rs @@ -37,8 +37,10 @@ fn string_concat() { #[test] fn simple_string() { - parse_test( - parse(b"foo"), - pipes([cmd([estr(b"foo")])]), - ); + parse_test(parse(b"foo"), pipes([cmd([estr(b"foo")])])); +} + +#[test] +fn simple_var() { + parse_test(parse(b"$foo"), pipes([cmd([str([var(b"foo")])])])); } -- cgit v1.2.3