Skip to content

Commit

Permalink
Merge pull request #107 from Cysharp/hadashiA/fix-test-for-mac
Browse files Browse the repository at this point in the history
Fix unit test for macos
  • Loading branch information
neuecc authored Feb 13, 2024
2 parents a67902a + 226813b commit 05a181d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ZString.Tests/CompositeFormatTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void AlignmentComponent()
decimal[] hours = { 40, 6.667m, 40.39m, 82, 40.333m, 80, 16.75m };

for (int ctr = 0; ctr < names.Length; ctr++)
Test("{0,-20} {1,5:F}", names[ctr], hours[ctr]);
Test("{0,-20} {1,5:F3}", names[ctr], hours[ctr]);
}


Expand All @@ -120,7 +120,7 @@ public void Spaces()
[Fact]
public void CompsiteFormats()
{
Test("{{Name = {0}, {1:f}({1:E})}}", "Fred", 500_0000_0000_0000m);
Test("{{Name = {0}, {1:f3}({1:E})}}", "Fred", 500_0000_0000_0000m);
}

}
Expand Down

0 comments on commit 05a181d

Please sign in to comment.