()
| 990 | |
| 991 | #[test] |
| 992 | fn test_draw_poly_filled_concave() { |
| 993 | let mut rasops = RecordingRasops::default(); |
| 994 | draw_poly_filled( |
| 995 | &mut rasops, |
| 996 | &[ |
| 997 | PixelsXY::new(10, 20), |
| 998 | PixelsXY::new(20, 20), |
| 999 | PixelsXY::new(20, 24), |
| 1000 | PixelsXY::new(15, 22), |
| 1001 | PixelsXY::new(10, 24), |
| 1002 | ], |
| 1003 | ) |
| 1004 | .unwrap(); |
| 1005 | assert_eq!( |
| 1006 | [ |
| 1007 | CapturedRasop::DrawLine(10, 20, 20, 20), |
| 1008 | CapturedRasop::DrawLine(10, 21, 20, 21), |
| 1009 | CapturedRasop::DrawLine(10, 22, 15, 22), |
| 1010 | CapturedRasop::DrawLine(15, 22, 20, 22), |
| 1011 | CapturedRasop::DrawLine(10, 23, 13, 23), |
| 1012 | CapturedRasop::DrawLine(18, 23, 20, 23), |
| 1013 | CapturedRasop::DrawLine(10, 20, 20, 20), |
| 1014 | CapturedRasop::DrawLine(20, 20, 20, 24), |
| 1015 | CapturedRasop::DrawLine(20, 24, 15, 22), |
| 1016 | CapturedRasop::DrawLine(15, 22, 10, 24), |
| 1017 | CapturedRasop::DrawLine(10, 24, 10, 20), |
| 1018 | ], |
| 1019 | rasops.ops.as_slice() |
| 1020 | ); |
| 1021 | } |
| 1022 | |
| 1023 | #[test] |
| 1024 | fn test_draw_rect_dot() { |
nothing calls this directly
no test coverage detected