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

Function test_kindset_add_remove

crates/css_lexer/src/kindset.rs:155–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154#[test]
155fn test_kindset_add_remove() {
156 let k_ident = KindSet::new(&[Kind::Ident]);
157 let k_ident_eof = k_ident.add(Kind::Eof);
158 assert!(k_ident.contains(Kind::Ident));
159 assert!(k_ident_eof.contains(Kind::Ident));
160 assert!(k_ident_eof.contains(Kind::Eof));
161 assert!(!k_ident_eof.remove(Kind::Eof).contains(Kind::Eof));
162}

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected