use color_parser::{hex, rgba, RGBA32, RGBA8};
#[test]
fn ready() {
println!("it works!")
}
#[test]
fn test_hex() {
assert_hex("#2F14DF", RGBA8::new(47, 20, 223, 255));
}
#[test]
#[ignore]
fn test_rgba() {
assert_rgb("rgb(100%,100%,100%/100%)", RGBA32 { r: 1.0, g: 1.0, b: 1.0, a: 1.0 });
}
fn assert_hex(input: &str, expected: RGBA8) {
assert_eq!(hex(input).unwrap(), expected);
}
fn assert_rgb(input: &str, expected: RGBA32) {
assert_eq!(rgba(input).unwrap(), expected);
}