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.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parse/test.rs b/src/parse/test.rs
index 6f49ed4..9e2d7a8 100644
--- a/src/parse/test.rs
+++ b/src/parse/test.rs
@@ -70,3 +70,11 @@ fn unclosed_single_quote() {
fn unclosed_double_quote() {
assert!(do_parse(b"x\"").is_err())
}
+
+#[test]
+fn tilde() {
+ parse_test(
+ parse(b"echo ~"),
+ pipes([cmd([estr(b"echo"), str([var(b"HOME")])])]),
+ );
+}