100-days-of-rust/Week-03/Day-15_Valid-Anagram/day15/tests/examples.rs

12 lines
164 B
Rust
Raw Permalink Normal View History

2024-08-09 09:45:11 +00:00
use day15::is_anagram;
#[test]
fn example1() {
assert!(is_anagram("anagram", "nagaram"));
}
#[test]
fn example2() {
assert!(!is_anagram("rat", "car"));
}