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

Function test_compact_function_with_escapes

crates/css_lexer/src/source_cursor.rs:858–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

856
857 #[test]
858 fn test_compact_function_with_escapes() {
859 let c = Cursor::new(SourceOffset(0), Token::new_ident(false, false, true, 0, 6));
860 let sc = SourceCursor::from(c, r"\72gb(");
861 assert_eq!(format!("{}", sc), r"\72gb(");
862 assert_eq!(format!("{}", sc.compact()), "rgb(");
863 }
864
865 #[test]
866 fn test_compact_number() {

Callers

nothing calls this directly

Calls 1

SourceOffsetClass · 0.85

Tested by

no test coverage detected