Skip to content

Commit

Permalink
Removed netcoreapp2.0 framework check in formatting precision tests (#…
Browse files Browse the repository at this point in the history
…1976)

* Removed netcoreapp2.0 framework check in formatting precision tests

* Added fix note to releases.md

* Revert "Added fix note to releases.md"

This reverts commit b46d86b.
  • Loading branch information
iliashkolyar committed Aug 31, 2022
1 parent b54ead4 commit e62b97a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Tests/FluentAssertions.Specs/Formatting/FormatterSpecs.cs
Expand Up @@ -458,11 +458,7 @@ public void When_formatting_single_it_should_have_max_precision()
string result = Formatter.ToString(value);

// Assert
#if NETCOREAPP3_0_OR_GREATER
result.Should().Be("0.33333334F");
#else
result.Should().Be("0.333333343F");
#endif
result.Should().BeOneOf("0.33333334F", "0.333333343F");
}

[Fact]
Expand Down Expand Up @@ -555,11 +551,7 @@ public void When_formatting_double_it_should_have_max_precision()
string result = Formatter.ToString(value);

// Assert
#if NETCOREAPP3_0_OR_GREATER
result.Should().Be("0.3333333333333333");
#else
result.Should().Be("0.33333333333333331");
#endif
result.Should().BeOneOf("0.3333333333333333", "0.33333333333333331");
}

[Fact]
Expand Down

0 comments on commit e62b97a

Please sign in to comment.