Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fecae2e

Browse files
committed
add
1 parent 63c8b96 commit fecae2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kamyu104/src/binary_watch.rs

+9
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,14 @@ mod tests {
4242
.map(String::from)
4343
.collect::<BTreeSet<String>>()
4444
);
45+
assert_eq!(
46+
Solution::read_binary_watch(1)
47+
.into_iter()
48+
.collect::<BTreeSet<String>>(),
49+
vec!["1:00", "2:00", "4:00", "8:00", "0:01", "0:02", "0:04", "0:08", "0:16", "0:32"]
50+
.into_iter()
51+
.map(Into::into)
52+
.collect::<BTreeSet<String>>()
53+
);
4554
}
4655
}

0 commit comments

Comments
 (0)