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

Function draw_works_1

src/boxplot.rs:346–359  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344
345 #[test]
346 fn draw_works_1() {
347 let x = vec![
348 vec![1, 2, 3], // A
349 vec![2, 3, 4, 5, 6], // B
350 vec![6, 7], // C
351 ];
352 let mut boxes = Boxplot::new();
353 boxes.draw(&x);
354 let b: &str = "x=[[1,2,3,],[2,3,4,5,6,],[6,7,],]\n\
355 p=plt.boxplot(x)\n";
356 assert_eq!(boxes.buffer, b);
357 boxes.clear_buffer();
358 assert_eq!(boxes.buffer, "");
359 }
360
361 #[test]
362 fn draw_works_2() {

Callers

nothing calls this directly

Calls 2

drawMethod · 0.45
clear_bufferMethod · 0.45

Tested by

no test coverage detected