Skip to content

Commit

Permalink
Fix unit test for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Feb 9, 2024
1 parent a67902a commit 226813b
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 226813b

Please sign in to comment.