MCPcopy Create free account
hub / github.com/elftausend/graplot / test_fn

Function test_fn

tests/test.rs:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74#[cfg(not(target_os = "linux"))]
75#[test]
76fn test_fn() {
77 //let plot = Plot::new((|x: f64| (2. * std::f64::consts::PI * x).sin(), 15000));
78 //let plot = Plot::new((|x: f64| x.powf(2.), 1000000));
79 let plot = Plot::new((|x: f64| x.powf(3.) + x.powf(2.) - 0.08, 10000));
80 //plot.show_threaded();
81 plot.show();
82
83 let plot = Plot::new((|x: f64| x.powf(2.) + 0.08, 10000));
84 plot.show()
85}
86
87/*
88#[cfg(target_os = "linux")]

Callers

nothing calls this directly

Calls 1

showMethod · 0.45

Tested by

no test coverage detected