Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Reopened Issue: BePositive() does not work for float and double [11946]

$
0
0
This throws a exceptinon:
double f = 3.8f;
f.Should().BePositive();

I looked at the code and the Subject.CompareTo(0) > 0 does not work with float and double.

And the comment is wrong. As it is implemented now, 0 is not validated as positive value but the comments says 0 or greater.
Comments: ** Comment from web user: dennisdoomen **

Should be on Fixed, not Closed


Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>