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

Function draw_with_str_works_1

src/barplot.rs:390–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388
389 #[test]
390 fn draw_with_str_works_1() {
391 let xx = ["one", "two", "three"];
392 let yy = [1, 2, 3];
393 let mut bar = Barplot::new();
394 bar.draw_with_str(&xx, &yy);
395 let b: &str = "x=['one','two','three',]\n\
396 y=np.array([1,2,3,])\n\
397 p=plt.bar(x,y)\n";
398 assert_eq!(bar.buffer, b);
399 }
400
401 #[test]
402 fn draw_with_str_works_2() {

Callers

nothing calls this directly

Calls 1

draw_with_strMethod · 0.80

Tested by

no test coverage detected