()
| 660 | |
| 661 | #[test] |
| 662 | fn test_draw_circle_larger() { |
| 663 | let mut rasops = RecordingRasops::default(); |
| 664 | draw_circle(&mut rasops, PixelsXY::new(10, 20), 4).unwrap(); |
| 665 | rasops.ops.sort(); |
| 666 | assert_eq!( |
| 667 | [ |
| 668 | CapturedRasop::DrawPixel(7, 18), |
| 669 | CapturedRasop::DrawPixel(7, 19), |
| 670 | CapturedRasop::DrawPixel(7, 20), |
| 671 | CapturedRasop::DrawPixel(7, 20), |
| 672 | CapturedRasop::DrawPixel(7, 21), |
| 673 | CapturedRasop::DrawPixel(7, 22), |
| 674 | CapturedRasop::DrawPixel(8, 17), |
| 675 | CapturedRasop::DrawPixel(8, 23), |
| 676 | CapturedRasop::DrawPixel(9, 17), |
| 677 | CapturedRasop::DrawPixel(9, 23), |
| 678 | CapturedRasop::DrawPixel(10, 17), |
| 679 | CapturedRasop::DrawPixel(10, 17), |
| 680 | CapturedRasop::DrawPixel(10, 23), |
| 681 | CapturedRasop::DrawPixel(10, 23), |
| 682 | CapturedRasop::DrawPixel(11, 17), |
| 683 | CapturedRasop::DrawPixel(11, 23), |
| 684 | CapturedRasop::DrawPixel(12, 17), |
| 685 | CapturedRasop::DrawPixel(12, 23), |
| 686 | CapturedRasop::DrawPixel(13, 18), |
| 687 | CapturedRasop::DrawPixel(13, 19), |
| 688 | CapturedRasop::DrawPixel(13, 20), |
| 689 | CapturedRasop::DrawPixel(13, 20), |
| 690 | CapturedRasop::DrawPixel(13, 21), |
| 691 | CapturedRasop::DrawPixel(13, 22), |
| 692 | ], |
| 693 | rasops.ops.as_slice() |
| 694 | ); |
| 695 | } |
| 696 | |
| 697 | #[test] |
| 698 | fn test_draw_circle_corners() { |
nothing calls this directly
no test coverage detected