unary_ops.rs 383 B

12345678910111213
  1. use kahlo::{colour::Colour, formats::Rgba32, prelude::*};
  2. mod common;
  3. #[test]
  4. fn fill_test() {
  5. let mut generate = kahlo::Bitmap::<Rgba32>::new(16, 16);
  6. generate.fill(Colour::rgba(0xaa, 0xbb, 0xcc, 0xff));
  7. common::save_test_result_rgba32("fill_test.png", &generate);
  8. let expected = common::load_test_resource("fill_test.png");
  9. assert_eq!(generate, expected);
  10. }