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

Function test_context_basic

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

Source from the content-addressed store, hash-verified

175
176 #[test]
177 fn test_context_basic() {
178 let mut ctx = Context::new();
179
180 let name = SymbolId::new(0);
181 let ty = TermId::new(0);
182
183 ctx.push_var(name, ty);
184 assert_eq!(ctx.len(), 1);
185
186 let entry = ctx.lookup(0).unwrap();
187 assert_eq!(entry.name, name);
188 assert_eq!(entry.ty, ty);
189 }
190
191 #[test]
192 fn test_debruijn_indices() {

Callers

nothing calls this directly

Calls 2

push_varMethod · 0.80
lookupMethod · 0.45

Tested by

no test coverage detected