mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 03:58:28 +02:00
Allow let/let-env to see custom command input (#854)
This commit is contained in:
@ -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",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user