Skip to content

Commit

Permalink
added few test cases for minmax
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyan011 committed Jan 16, 2024
1 parent ceae13c commit 360efc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argmin-math/src/primitives/minmax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ mod tests {
let y = 10 as $t;
assert_eq!(<$t as ArgminMinMax>::min(&x, &y), x);
assert_eq!(<$t as ArgminMinMax>::max(&x, &y), y);
assert_eq!(<$t as ArgminMinMax>::min(&y, &x), x);
assert_eq!(<$t as ArgminMinMax>::max(&y, &x), y);
}
}
}
}

make_test!(f32);
make_test!(f64);
}
}

0 comments on commit 360efc2

Please sign in to comment.