100-days-of-rust/Week-01/Day-06_Next-Prime/next_prime/tests/exaples.rs
2024-07-31 21:14:40 +02:00

17 lines
251 B
Rust

use next_prime::next_prime;
#[test]
fn first_example() {
assert_eq!(next_prime(12), Some(13));
}
#[test]
fn second_example() {
assert_eq!(next_prime(24), Some(29));
}
#[test]
fn third_example() {
assert_eq!(next_prime(11), Some(11));
}