Lines Matching refs:max
15 let max = $crate::std::$I::MAX; localVariable
16 assert_eq!((max - 3).average_ceil(&(max - 1)), max - 2);
17 assert_eq!((max - 3).average_ceil(&(max - 2)), max - 2);
26 let max = $crate::std::$I::MAX; localVariable
27 assert_eq!(min.average_ceil(&max), 0 as $I);
39 let max = $crate::std::$I::MAX; localVariable
40 assert_eq!((max - 3).average_floor(&(max - 1)), max - 2);
41 assert_eq!((max - 3).average_floor(&(max - 2)), max - 3);
50 let max = $crate::std::$I::MAX; localVariable
51 assert_eq!(min.average_floor(&max), -1 as $I);
68 let max = $crate::std::$U::MAX; localVariable
69 assert_eq!((max - 3).average_ceil(&(max - 1)), max - 2);
70 assert_eq!((max - 3).average_ceil(&(max - 2)), max - 2);
85 let max = $crate::std::$U::MAX; localVariable
86 assert_eq!((max - 3).average_floor(&(max - 1)), max - 2);
87 assert_eq!((max - 3).average_floor(&(max - 2)), max - 3);