MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / test_let_binding

Function test_let_binding

lean-agentic/src/context.rs:226–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224
225 #[test]
226 fn test_let_binding() {
227 let mut ctx = Context::new();
228
229 let name = SymbolId::new(0);
230 let ty = TermId::new(0);
231 let val = TermId::new(1);
232
233 ctx.push(ContextEntry::with_value(name, ty, val));
234
235 assert_eq!(ctx.type_of(0), Some(ty));
236 assert_eq!(ctx.value_of(0), Some(val));
237 }
238}

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected