MCPcopy Create free account
hub / github.com/cpmech/plotpy / arc_works

Function arc_works

src/canvas.rs:1442–1448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1440
1441 #[test]
1442 fn arc_works() {
1443 let mut canvas = Canvas::new();
1444 canvas.draw_arc(0.0, 0.0, 1.0, 30.0, 60.0);
1445 let b: &str = "p=pat.Arc((0,0),2*1,2*1,theta1=30,theta2=60,angle=0,edgecolor='#427ce5')\n\
1446 plt.gca().add_patch(p)\n";
1447 assert_eq!(canvas.buffer, b);
1448 }
1449
1450 #[test]
1451 fn arrow_woks() {

Callers

nothing calls this directly

Calls 1

draw_arcMethod · 0.80

Tested by

no test coverage detected