()
| 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() { |