100-days-of-rust/Week-10/Day-64_First-Recurring-Character/day64/tests/examples.rs

15 lines
267 B
Rust

#[cfg(test)]
mod examples {
use day64::recurring_character;
#[test]
fn example1() {
assert_eq!(recurring_character("ABCDEBC"), Some('B'));
}
#[test]
fn example2() {
assert_eq!(recurring_character("ABBA"), Some('B'));
}
}