fix tests
This commit is contained in:
parent
fa10dd64a4
commit
450ed827ad
3
TODO.md
3
TODO.md
@ -16,4 +16,5 @@
|
|||||||
8. Keybinds
|
8. Keybinds
|
||||||
9. nth derivative support (again)
|
9. nth derivative support (again)
|
||||||
10. add configs for toggling display of roots and extrema
|
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
|
||||||
@ -355,7 +355,7 @@ fn verify_function(
|
|||||||
) {
|
) {
|
||||||
{
|
{
|
||||||
let (back_values, bars, derivative) = function.run_back();
|
let (back_values, bars, derivative) = function.run_back();
|
||||||
assert!(derivative.is_none());
|
assert!(derivative.is_some());
|
||||||
assert!(bars.is_none());
|
assert!(bars.is_none());
|
||||||
assert_eq!(back_values.len(), pixel_width);
|
assert_eq!(back_values.len(), pixel_width);
|
||||||
let back_values_tuple: Vec<(f64, f64)> =
|
let back_values_tuple: Vec<(f64, f64)> =
|
||||||
@ -366,7 +366,7 @@ fn verify_function(
|
|||||||
{
|
{
|
||||||
*function = function.clone().integral(true);
|
*function = function.clone().integral(true);
|
||||||
let (back_values, bars, derivative) = function.run_back();
|
let (back_values, bars, derivative) = function.run_back();
|
||||||
assert!(derivative.is_none());
|
assert!(derivative.is_some());
|
||||||
assert!(bars.is_some());
|
assert!(bars.is_some());
|
||||||
assert_eq!(back_values.len(), pixel_width);
|
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();
|
let (back_values, bars, derivative) = function.run_back();
|
||||||
assert!(derivative.is_some());
|
assert!(derivative.is_some());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user