()
| 148 | |
| 149 | #[test] |
| 150 | fn color_enum_round() { |
| 151 | let rounded = Color::Oklch(Oklch::new(0.6593827, 0.30412345, 203.27412, 100.0)).round(); |
| 152 | assert_eq!(rounded, Color::Oklch(Oklch::new(0.659, 0.304, 203.3, 100.0))); |
| 153 | } |
| 154 | |
| 155 | #[test] |
| 156 | fn round_stays_perceptually_close() { |