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

Function expr_const_matches_by_address

crates/kernel/src/congruence.rs:522–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520
521 #[test]
522 fn expr_const_matches_by_address() {
523 let name = mk_name("Nat");
524 let addr = mk_addr("Nat");
525 let r = resolver_with(&[(name.clone(), addr.clone())]);
526
527 let lean_e = env::Expr::cnst(name.clone(), vec![]);
528 let zero_e = KExpr::<Anon>::cnst(KId::new(addr, ()), Box::new([]));
529 expr_congruent(&lean_e, &zero_e, &r).unwrap();
530 }
531
532 #[test]
533 fn expr_const_addr_mismatch_fails() {

Callers

nothing calls this directly

Calls 6

resolver_withFunction · 0.85
expr_congruentFunction · 0.85
mk_nameFunction · 0.70
mk_addrFunction · 0.70
cnstFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected