()
| 530 | |
| 531 | #[test] |
| 532 | fn draw_superquadric_works() { |
| 533 | let mut surf = Surface::new(); |
| 534 | surf.draw_superquadric( |
| 535 | &[0.0, 0.0, 0.0], |
| 536 | &[1.0, 1.0, 1.0], |
| 537 | &[2.0, 2.0, 2.0], |
| 538 | 0.0, |
| 539 | 180.0, |
| 540 | 0.0, |
| 541 | 180.0, |
| 542 | 2, |
| 543 | 2, |
| 544 | ) |
| 545 | .unwrap(); |
| 546 | assert!(surf.get_buffer().len() > 0); |
| 547 | } |
| 548 | |
| 549 | #[test] |
| 550 | fn draw_sphere_fails_on_wrong_input() { |
nothing calls this directly
no test coverage detected