pub fn run_inspecting(source: &str, fuel: Fuel) -> Io<Error, (Value, Heap)>Expand description
Lex, parse, and evaluate source, returning both the value and the final
heap. Useful for tests that need to verify GC behaviour.
§Errors
See Error.
§Examples
use lambda_throw_cat::eval::Fuel;
use lambda_throw_cat::run_inspecting;
let (_value, heap) = run_inspecting(r"{}", Fuel::new(100)).run()?;
assert_eq!(heap.len(), 1);