()
| 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() { |
nothing calls this directly
no test coverage detected