MCPcopy Create free account
hub / github.com/chc4/lineiform / test_dynamic_function

Function test_dynamic_function

lineiform/src/closure.rs:343–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341
342 #[test]
343 fn test_dynamic_function() -> Result<(), TestError> {
344 assert_eq!(compile_expr("
345 (let :f '(+ 1 2)
346 ((get :f))
347 )
348 ")?(&mut Env::new())?, Atom::atom(3));
349 Ok(())
350 }
351}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected