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

Function test_compact_ident_with_escapes

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

Source from the content-addressed store, hash-verified

848
849 #[test]
850 fn test_compact_ident_with_escapes() {
851 let c = Cursor::new(SourceOffset(0), Token::new_ident(false, false, true, 0, 5));
852 let sc = SourceCursor::from(c, r"\66oo");
853 assert_eq!(format!("{}", sc), r"\66oo");
854 assert_eq!(format!("{}", sc.compact()), "foo");
855 }
856
857 #[test]
858 fn test_compact_function_with_escapes() {

Callers

nothing calls this directly

Calls 1

SourceOffsetClass · 0.85

Tested by

no test coverage detected