IterBinomial: Make tests closer to overflow threshold (like for binomial)

This commit is contained in:
Vinzent Steinberg 2017-03-20 10:45:27 +01:00
parent 47613ff5ff
commit d4deba6947
1 changed files with 7 additions and 7 deletions

View File

@ -760,7 +760,7 @@ fn test_lcm_overflow() {
} }
#[test] #[test]
fn test_binomial_coeff() { fn test_iter_binomial() {
macro_rules! check_simple { macro_rules! check_simple {
($t:ty) => { { ($t:ty) => { {
let n: $t = 3; let n: $t = 3;
@ -793,12 +793,12 @@ fn test_binomial_coeff() {
check_binomial!(u8, 6); check_binomial!(u8, 6);
check_binomial!(i8, 6); check_binomial!(i8, 6);
check_binomial!(u16, 10); check_binomial!(u16, 14);
check_binomial!(i16, 10); check_binomial!(i16, 14);
check_binomial!(u32, 10); check_binomial!(u32, 14);
check_binomial!(i32, 10); check_binomial!(i32, 14);
check_binomial!(u64, 10); check_binomial!(u64, 35);
check_binomial!(i64, 10); check_binomial!(i64, 35);
} }
#[test] #[test]