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

12 lines
164 B
Rust

use day15::is_anagram;
#[test]
fn example1() {
assert!(is_anagram("anagram", "nagaram"));
}
#[test]
fn example2() {
assert!(!is_anagram("rat", "car"));
}