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

15 lines
267 B
Rust
Raw Normal View History

2024-09-27 07:30:59 +00:00
#[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'));
}
}