INNER CODE UNIT · Rust
fmt_formats_the_hashmapid
lunatic-solutions/lunatic · crates/hash-map-id/src/lib.rs:194
fn fmt_formats_the_hashmapid() {
let mut hash: HashMapId<i32> = HashMapId::default();
hash.add(10);
let expected = format!("HashMapId {{ id_seed: {}, type: \"i32\" }}", hash.id_seed);
let result = format!("{:?}", hash);
assert_eq!(result, expected);
}
}