Lines
100 %
Functions
Branches
//! SETF on a wasm local — the bind-runtime path of `let*` allocates
//! a local, the setf path mutates it. Used to be tested via an
//! injected `Expr::WasmRuntime(Ratio)` symbol; rewritten to use a
//! real host fn producer.
use super::common::{compile_and_validate, wrap_with_runtime_ratio};
#[test]
fn setf_on_let_star_local() {
compile_and_validate(&wrap_with_runtime_ratio(
"(let* ((Y (+ X 1))) (setf Y (+ Y 2)) Y)",
));
}