Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Mar 18, 2024
1 parent 3fc95f0 commit 8161e59
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/time/cuc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,17 +1196,13 @@ mod tests {

#[test]
fn test_small_fraction_floored_to_zero() {
let fractions =
fractional_part_from_subsec_ns(FractionalResolution::SixtyNs, 59)
.unwrap();
let fractions = fractional_part_from_subsec_ns(FractionalResolution::SixtyNs, 59).unwrap();
assert_eq!(fractions.1, 0);
}

#[test]
fn test_small_fraction_becomes_fractional_part() {
let fractions =
fractional_part_from_subsec_ns(FractionalResolution::SixtyNs, 61)
.unwrap();
let fractions = fractional_part_from_subsec_ns(FractionalResolution::SixtyNs, 61).unwrap();
assert_eq!(fractions.1, 1);
}

Expand All @@ -1229,8 +1225,7 @@ mod tests {
#[test]
fn test_smallest_resolution_large_nanoseconds_becomes_largest_fraction() {
let fractions =
fractional_part_from_subsec_ns(FractionalResolution::FourMs, 10u64.pow(9) - 1)
.unwrap();
fractional_part_from_subsec_ns(FractionalResolution::FourMs, 10u64.pow(9) - 1).unwrap();
assert_eq!(fractions.1, 2_u32.pow(8) - 1);
}

Expand Down

0 comments on commit 8161e59

Please sign in to comment.