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

Function draw_works

src/text.rs:333–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331
332 #[test]
333 fn draw_works() {
334 let mut text = Text::new();
335 text.draw(1.2, 3.4, &"message".to_string());
336 let b: &str = "t=plt.text(1.2,3.4,r'message')\n";
337 assert_eq!(text.buffer, b);
338 text.clear_buffer();
339 assert_eq!(text.buffer, "");
340 }
341
342 #[test]
343 fn draw_3d_works() {

Callers

nothing calls this directly

Calls 2

drawMethod · 0.45
clear_bufferMethod · 0.45

Tested by

no test coverage detected