diff options
Diffstat (limited to 'src/parse/test.rs')
| -rw-r--r-- | src/parse/test.rs | 10 |
1 files changed, 6 insertions, 4 deletions
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")])])])); } |
