20 lines
332 B
Rust
20 lines
332 B
Rust
|
use day8::combination;
|
||
|
|
||
|
#[test]
|
||
|
fn example1() {
|
||
|
assert_eq!(
|
||
|
combination("23"),
|
||
|
vec!["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]
|
||
|
);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn example2() {
|
||
|
assert_eq!(combination(""), vec![] as Vec<String>);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn example3() {
|
||
|
assert_eq!(combination("2"), vec!["a", "b", "c"]);
|
||
|
}
|