re: gdiplus: Some tests for GdipGetLineRect
6 Feb
2009
6 Feb
'09
1:14 p.m.
Nikolay Sivov <bunglehead at gmail.com> wrote:
... + ok(rectf.X == 10.0, "Expected 10.0 got %.2f\n", rectf.X);
Exact equality comparison on float is never a good idea in unit tests. You need a range test instead. See http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Floating-Po...
6159
Age (days ago)
6159
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dan Kegel