Skip to content

Commit

Permalink
make DefaultStrategy_HoursApart test closer (#1336)
Browse files Browse the repository at this point in the history
* make DefaultStrategy_HoursApart test closer

* Update TimeOnlyHumanizeTests.cs
  • Loading branch information
SimonCropp authored Feb 14, 2024
1 parent db66349 commit 4617faf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public void DefaultStrategy_SameTime()
[Fact]
public void DefaultStrategy_HoursApart()
{
var inputTime = new TimeOnly(13, 08, 05);
var inputTime = new TimeOnly(3, 08, 05);
var baseTime = new TimeOnly(1, 08, 05);

const string expectedResult = "dans 12 heures";
const string expectedResult = "dans 2 heures";
var actualResult = inputTime.Humanize(baseTime);

Assert.Equal(expectedResult, actualResult);
Expand Down

0 comments on commit 4617faf

Please sign in to comment.