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

Function expr_nat_lit_matches

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

Source from the content-addressed store, hash-verified

634
635 #[test]
636 fn expr_nat_lit_matches() {
637 let r = empty_resolver();
638 let lean_e = env::Expr::lit(Literal::NatVal(n(42)));
639 // Nat expr construction for the zero kernel.
640 let zero_e = KExpr::<Anon>::nat(n(42), mk_addr("any"));
641 expr_congruent(&lean_e, &zero_e, &r).unwrap();
642 }
643
644 #[test]
645 fn expr_str_lit_matches() {

Callers

nothing calls this directly

Calls 5

empty_resolverFunction · 0.85
expr_congruentFunction · 0.85
nFunction · 0.70
natFunction · 0.70
mk_addrFunction · 0.70

Tested by

no test coverage detected