Skip to content

Commit

Permalink
fix line duplication from merge
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
kartva committed Aug 17, 2024
1 parent 72bf6e5 commit 9ebe737
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/experimental/src/duration/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ mod tests {
#[test]
fn test_digital_formatter() {
let duration = Duration {
sign: DurationSign::Positive,
sign: DurationSign::Positive,
years: 0,
months: 0,
Expand All @@ -635,7 +634,6 @@ mod tests {
};

let options = DurationFormatterOptions {
base: BaseStyle::Digital,
base: BaseStyle::Digital,
..Default::default()
};
Expand Down Expand Up @@ -673,7 +671,7 @@ mod tests {
let formatted = formatter.format(&duration);
assert_eq!(
formatted.write_to_string().into_owned(),
"-0 year, 2 months, 3 weeks, 12 hours, 1 minute, 5.13014 seconds"
"-0 years, 2 months, 3 weeks, 12 hours, 1 minute, 5.13014 seconds"
);
}
}

0 comments on commit 9ebe737

Please sign in to comment.