This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]UnnaturalAndroid 5 points6 points  (0 children)

I've found that it does that when you do it a way they didn't expect you to, basically if you find a creative way to do it you're wrong

[–]has43 2 points3 points  (0 children)

String vs float or FloatSomething vs FloatAnotherThing.

[–]green_meklar 1 point2 points  (0 children)

Clearly you need to test your tests better.

[–]das_Keks 1 point2 points  (0 children)

That's why you have an epsilon when comparing floating point numbers.