15 lines
267 B
Rust
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'));
|
|
}
|
|
}
|