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

Function lab_round

crates/chromashift/src/round.rs:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106 #[test]
107 fn lab_round() {
108 // 1dp for all channels
109 let rounded = Lab::new(32.39271642, 38.42945581, -47.68554267, 100.0).round();
110 assert_eq!(rounded, Lab::new(32.4, 38.4, -47.7, 100.0));
111 }
112
113 #[test]
114 fn lch_round() {

Callers

nothing calls this directly

Calls 1

roundMethod · 0.80

Tested by

no test coverage detected