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

Function test_reduce_lengths_feature

crates/csskit_transform/src/css_minifier.rs:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59 #[test]
60 fn test_reduce_lengths_feature() {
61 let input = "body { width: 0px; }";
62 let (output, changed) = minify(input, CssMinifierFeature::ReduceLengths);
63 assert!(changed);
64 assert!(output.contains("width:0"), "Should apply length reduction, got: {}", output);
65 assert!(!output.contains("0px"), "Should not contain 0px, got: {}", output);
66 }
67
68 #[test]
69 fn test_no_features() {

Callers

nothing calls this directly

Calls 1

minifyFunction · 0.70

Tested by

no test coverage detected