mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-13 21:03:31 +02:00
feat: completed tests
This commit is contained in:
@@ -15,9 +15,9 @@ mod tests {
|
||||
#[test]
|
||||
fn you_can_assert_eq() {
|
||||
// TODO: Test the function `power_of_2` with some values.
|
||||
assert_eq!();
|
||||
assert_eq!();
|
||||
assert_eq!();
|
||||
assert_eq!();
|
||||
assert_eq!(power_of_2(2), 4);
|
||||
assert_eq!(power_of_2(3), 8);
|
||||
assert_eq!(power_of_2(10), 1024);
|
||||
assert_eq!(power_of_2(42), 4398046511104);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user