Skip to content

Commit

Permalink
Add Second Pathological Case
Browse files Browse the repository at this point in the history
  • Loading branch information
oldwomanjosiah committed Sep 19, 2022
1 parent 9608b95 commit 98140f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/simplexpr/src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"))),
}
}

0 comments on commit 98140f9

Please sign in to comment.