Skip to content

Commit

Permalink
fixed missing semicolons (exercism#1427)
Browse files Browse the repository at this point in the history
Fixed missing semicolons in test so clippy::semicolon-if-nothing-returned doesn't complain
  • Loading branch information
tanelikaivola authored Jan 16, 2022
1 parent 163ced1 commit ce74db0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exercises/practice/clock/tests/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,35 +318,35 @@ fn test_compare_clocks_with_minutes_overflow_by_several_days() {
#[test]
#[ignore]
fn test_compare_clocks_with_negative_minute() {
assert_eq!(Clock::new(3, -20), Clock::new(2, 40))
assert_eq!(Clock::new(3, -20), Clock::new(2, 40));
}

#[test]
#[ignore]
fn test_compare_clocks_with_negative_minute_that_wraps() {
assert_eq!(Clock::new(5, -1490), Clock::new(4, 10))
assert_eq!(Clock::new(5, -1490), Clock::new(4, 10));
}

#[test]
#[ignore]
fn test_compare_clocks_with_negative_minute_that_wraps_multiple() {
assert_eq!(Clock::new(6, -4305), Clock::new(6, 15))
assert_eq!(Clock::new(6, -4305), Clock::new(6, 15));
}

#[test]
#[ignore]
fn test_compare_clocks_with_negative_hours_and_minutes() {
assert_eq!(Clock::new(-12, -268), Clock::new(7, 32))
assert_eq!(Clock::new(-12, -268), Clock::new(7, 32));
}

#[test]
#[ignore]
fn test_compare_clocks_with_negative_hours_and_minutes_that_wrap() {
assert_eq!(Clock::new(-54, -11_513), Clock::new(18, 7))
assert_eq!(Clock::new(-54, -11_513), Clock::new(18, 7));
}

#[test]
#[ignore]
fn test_compare_full_clock_and_zeroed_clock() {
assert_eq!(Clock::new(24, 0), Clock::new(0, 0))
assert_eq!(Clock::new(24, 0), Clock::new(0, 0));
}

0 comments on commit ce74db0

Please sign in to comment.