Allow let/let-env to see custom command input (#854)

This commit is contained in:
JT
2022-01-26 14:00:25 -05:00
committed by GitHub
parent 83ec374995
commit 78b5da8255
5 changed files with 68 additions and 52 deletions

View File

@ -166,3 +166,11 @@ fn divide_filesize() -> TestResult {
fn date_comparison() -> TestResult {
run_test(r#"(date now) < ((date now) + 2min)"#, "true")
}
#[test]
fn let_sees_input() -> TestResult {
run_test(
r#"def c [] { let x = str length; $x }; "hello world" | c"#,
"11",
)
}