100-days-of-rust/Week-01/Day-06_Next-Prime/next_prime/tests/exaples.rs

17 lines
251 B
Rust
Raw Normal View History

2024-07-31 19:14:40 +00:00
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));
}