1 | use crate::prelude::*; |
---|---|
2 | |
3 | #[cfg(feature = "svg_backend")] |
4 | #[test] |
5 | fn regression_test_issue_267() { |
6 | let p1 = (338, 122); |
7 | let p2 = (365, 122); |
8 | |
9 | let mut backend = SVGBackend::new("blub.png", (800, 600)); |
10 | |
11 | backend |
12 | .draw_line(p1, p2, &RGBColor(0, 0, 0).stroke_width(0)) |
13 | .unwrap(); |
14 | } |
15 | |
16 | #[test] |
17 | fn from_trait_impl_rgba_color() { |
18 | let rgb = RGBColor(1, 2, 3); |
19 | let c = RGBAColor::from(rgb); |
20 | |
21 | assert_eq!(c.rgb(), rgb.rgb()); |
22 | } |
23 |