-
-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling of NaN in numeric assertions.
- Loading branch information
1 parent
d93bc09
commit 94721c3
Showing
8 changed files
with
1,612 additions
and
899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace FluentAssertions.Numeric | ||
{ | ||
internal class DoubleAssertions : NumericAssertions<double> | ||
{ | ||
public DoubleAssertions(double value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
internal override bool IsNaN(double value) => double.IsNaN(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace FluentAssertions.Numeric | ||
{ | ||
internal class FloatAssertions : NumericAssertions<float> | ||
{ | ||
public FloatAssertions(float value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
internal override bool IsNaN(float value) => float.IsNaN(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.