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

Function lam_binder_info_does_not_affect_hash

crates/kernel/src/expr.rs:901–911  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899 }
900
901 // ---- Constructors & hashing ----
902
903 #[test]
904 fn var_hash_deterministic() {
905 // Identity is intern-assigned now: independently built nodes carry
906 // distinct uids but remain structurally equal (`==`).
907 assert_eq!(AE::var(0, ()), AE::var(0, ()));
908 }
909
910 #[test]
911 fn var_different_indices() {
912 assert_ne!(AE::var(0, ()).addr(), AE::var(1, ()).addr());
913 }
914

Callers

nothing calls this directly

Calls 5

sortFunction · 0.85
varFunction · 0.70
mk_nameFunction · 0.70
lamFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected