24 lines
No EOL
487 B
Rust
24 lines
No EOL
487 B
Rust
//! Unit tests migrated from src/basic/keywords/math/minmax.rs
|
|
//! These tests were originally in botserver and have been migrated to bottest.
|
|
|
|
#![allow(unused_imports)]
|
|
#![allow(unused_variables)]
|
|
#![allow(dead_code)]
|
|
|
|
|
|
#[test]
|
|
|
|
|
|
|
|
fn test_max_values() {
|
|
assert_eq!(10_i64.max(5), 10);
|
|
assert_eq!(3.5_f64.max(7.2), 7.2);
|
|
}
|
|
|
|
#[test]
|
|
|
|
|
|
fn test_min_values() {
|
|
assert_eq!(10_i64.min(5), 5);
|
|
assert_eq!(3.5_f64.min(7.2), 3.5);
|
|
} |