MCPcopy Create free account
hub / github.com/alceal/plotlars / test_value_range

Function test_value_range

crates/plotlars-core/src/components/axis.rs:374–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373 #[test]
374 fn test_value_range() {
375 let a = Axis::new().value_range(0.0, 100.0);
376 let range = a.value_range.unwrap();
377 assert!((range[0] - 0.0).abs() < 1e-6);
378 assert!((range[1] - 100.0).abs() < 1e-6);
379 }
380
381 #[test]
382 fn test_tick_labels_converts() {

Callers

nothing calls this directly

Calls 1

value_rangeMethod · 0.80

Tested by

no test coverage detected