summaryrefslogtreecommitdiffstats
path: root/src/parse
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-07 22:58:22 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-07 22:58:22 -0500
commitc271a9e62251f76e9798894346adcbfd3aa6dc8a (patch)
tree30a91882b372c05c2c3224d9e852e1b74d1cfc37 /src/parse
parent3c478958c77eb00367513b21200d432333a887aa (diff)
downloadnbsh-c271a9e62251f76e9798894346adcbfd3aa6dc8a.tar.gz
nbsh-c271a9e62251f76e9798894346adcbfd3aa6dc8a.zip
allow empty strings
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/test_ast.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse/test_ast.rs b/src/parse/test_ast.rs
index 4ac75ec..fb3a4e3 100644
--- a/src/parse/test_ast.rs
+++ b/src/parse/test_ast.rs
@@ -233,6 +233,9 @@ fn test_basic() {
)
))
);
+
+ parse_eq!("foo ''", cs!(p!((0, 6), e!(w!("foo"), w!()))));
+ parse_eq!("foo \"\"", cs!(p!((0, 6), e!(w!("foo"), w!()))));
}
#[test]