MCPcopy Create free account
hub / github.com/csskit/csskit / test_dynamic_atom_interning

Function test_dynamic_atom_interning

crates/css_lexer/src/dyn_atom_registry.rs:297–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295
296 #[test]
297 fn test_dynamic_atom_interning() {
298 let combined = DynAtomRegistry::<TestAtomSet>::new();
299
300 let bits1 = combined.str_to_bits("custom");
301 let bits2 = combined.str_to_bits("custom");
302
303 assert_eq!(bits1, bits2, "Same string should atomize to same bits");
304 }
305
306 #[test]
307 fn test_lookup() {

Callers

nothing calls this directly

Calls 1

str_to_bitsMethod · 0.45

Tested by

no test coverage detected