Skip to content

Commit 7f9f897

Browse files
committed
add test-case to if/if1 to check equal values
1 parent b949422 commit 7f9f897

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercises/if/if1.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ mod tests {
2525
fn fortytwo_is_bigger_than_thirtytwo() {
2626
assert_eq!(42, bigger(32, 42));
2727
}
28+
29+
#[test]
30+
fn equal_numbers() {
31+
assert_eq!(42, bigger(42, 42));
32+
}
2833
}

0 commit comments

Comments
 (0)