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

Function meta_equality_includes_name

crates/kernel/src/id.rs:164–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163 #[test]
164 fn meta_equality_includes_name() {
165 let addr = mk_addr("test");
166 let a = KId::<Meta>::new(addr.clone(), mk_name("Foo"));
167 let b = KId::<Meta>::new(addr.clone(), mk_name("Bar"));
168 let c = KId::<Meta>::new(addr.clone(), mk_name("Foo"));
169 assert_ne!(a, b);
170 assert_eq!(a, c);
171 }
172
173 #[test]
174 fn anon_equality_ignores_erased_name() {

Callers

nothing calls this directly

Calls 3

mk_addrFunction · 0.70
mk_nameFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected