From 98140f947e715605a6e03365aa0bb3706e95460c Mon Sep 17 00:00:00 2001 From: Josiah Hilden Date: Mon, 19 Sep 2022 17:06:04 -0500 Subject: [PATCH] Add Second Pathological Case --- crates/simplexpr/src/eval.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/simplexpr/src/eval.rs b/crates/simplexpr/src/eval.rs index df510af5..923a675b 100644 --- a/crates/simplexpr/src/eval.rs +++ b/crates/simplexpr/src/eval.rs @@ -438,5 +438,17 @@ mod tests { end end "#) => Ok(DynVal::from(String::from("Hello, World!"))), + pathological_let_in_2( + r#" + let + value = "Hello", + value = value + ", ", + value = value + "Wor", + value = value + "ld!" + in + value + end + "# + ) => Ok(DynVal::from(String::from("Hello, World!"))), } }