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