fix tests

This commit is contained in:
Simon Gardling 2022-03-09 21:20:32 -05:00
parent fa10dd64a4
commit 450ed827ad
2 changed files with 4 additions and 4 deletions

View File

@ -16,4 +16,5 @@
8. Keybinds
9. nth derivative support (again)
10. add configs for toggling display of roots and extrema
11. reduce jittering of roots and extrema points
11. reduce jittering of roots and extrema points
12. Update function tests

View File

@ -355,7 +355,7 @@ fn verify_function(
) {
{
let (back_values, bars, derivative) = function.run_back();
assert!(derivative.is_none());
assert!(derivative.is_some());
assert!(bars.is_none());
assert_eq!(back_values.len(), pixel_width);
let back_values_tuple: Vec<(f64, f64)> =
@ -366,7 +366,7 @@ fn verify_function(
{
*function = function.clone().integral(true);
let (back_values, bars, derivative) = function.run_back();
assert!(derivative.is_none());
assert!(derivative.is_some());
assert!(bars.is_some());
assert_eq!(back_values.len(), pixel_width);
@ -381,7 +381,6 @@ fn verify_function(
}
{
function.derivative = true;
let (back_values, bars, derivative) = function.run_back();
assert!(derivative.is_some());