add test suggested by @sholderbach

This commit is contained in:
Devyn Cairns 2024-07-15 15:29:08 -07:00
parent 5b11cbbfdd
commit a051d8e2d0
No known key found for this signature in database

View File

@ -67,6 +67,14 @@ fn in_with_custom_command() -> TestResult {
) )
} }
#[test]
fn in_used_twice_and_also_in_pipeline() -> TestResult {
run_test(
r#"3 | do { let x = $in; let y = $in; $x + $y | $in * 4 }"#,
"24",
)
}
#[test] #[test]
fn help_works_with_missing_requirements() -> TestResult { fn help_works_with_missing_requirements() -> TestResult {
run_test(r#"each --help | lines | length"#, "72") run_test(r#"each --help | lines | length"#, "72")