diff --git a/tests/repl/test_engine.rs b/tests/repl/test_engine.rs index 2538208318..1b74e741f7 100644 --- a/tests/repl/test_engine.rs +++ b/tests/repl/test_engine.rs @@ -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] fn help_works_with_missing_requirements() -> TestResult { run_test(r#"each --help | lines | length"#, "72")