Commit 3e214c62 authored by robbycerantola's avatar robbycerantola

Merge branch 'master' into fast_image

parents 809d8dd0 f14d4e1d
......@@ -68,3 +68,16 @@ impl fmt::Debug for Color {
write!(f, "{:#010X}", {self.data})
}
}
#[cfg(test)]
mod tests {
#[test]
fn partial_eq() {
use Color;
assert_eq!(true, Color::rgb(1,2,3) == Color::rgba(1,2,3,200));
assert_eq!(false, Color::rgb(1,2,3) == Color::rgba(11,2,3,200));
assert_eq!(true, Color::rgba(1,2,3,200) == Color::rgba(1,2,3,200));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment