MCPcopy Create free account
hub / github.com/argumentcomputer/ix / whnf_key_empty_ctx_for_closed_expr

Function whnf_key_empty_ctx_for_closed_expr

crates/kernel/src/tc.rs:1310–1316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1308 fn ctx_id_restores_on_pop() {
1309 let mut tc = new_tc();
1310 let initial = tc.ctx_id;
1311 tc.push_local(sort0());
1312 let level1 = tc.ctx_id;
1313 tc.push_local(sort1());
1314 assert_ne!(level1, tc.ctx_id);
1315 tc.pop_local();
1316 assert_eq!(tc.ctx_id, level1);
1317 tc.pop_local();
1318 assert_eq!(tc.ctx_id, initial);
1319 }

Callers

nothing calls this directly

Calls 3

new_tcFunction · 0.85
whnf_keyMethod · 0.80
sort0Function · 0.70

Tested by

no test coverage detected