Skip to content

Commit

Permalink
chg - Don't test days
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 1, 2024
1 parent ceb67d5 commit 86a3e7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions VisualCard.Tests/Durations/DurationParseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ public void ParseDuration()
{
var span = VcardCommonTools.GetDurationSpan("P2Y10M15DT10H30M20S");

// We can't test against result because it's uninferrable due to CPU timings.
// We can't test against result and days because it's uninferrable due to CPU timings.
span.result.ShouldNotBe(new());
span.span.ShouldNotBe(new());
span.span.Days.ShouldBe(1048);
span.span.Hours.ShouldBe(10);
span.span.Minutes.ShouldBe(30);
span.span.Seconds.ShouldBe(20);
Expand All @@ -101,10 +100,9 @@ public void ParseNegativeDuration()
{
var span = VcardCommonTools.GetDurationSpan("-P2Y10M15DT10H30M20S");

// We can't test against result because it's uninferrable due to CPU timings.
// We can't test against result and days because it's uninferrable due to CPU timings.
span.result.ShouldNotBe(new());
span.span.ShouldNotBe(new());
span.span.Days.ShouldBe(-1050);
span.span.Hours.ShouldBe(-10);
span.span.Minutes.ShouldBe(-30);
span.span.Seconds.ShouldBe(-20);
Expand Down

0 comments on commit 86a3e7a

Please sign in to comment.