Revision: 7942
Author: [email protected]
Date: Mon Apr 19 09:23:34 2010
Log: Fix floating-point string compare in CoverageTest.

Because 1.2f has no exact floating point representation, this test fails with -draftCompile and -ea. Using 1.5f which can be represented exactly.

http://gwt-code-reviews.appspot.com/312804/show
Suggested by: spoon
Review by: tobyr

http://code.google.com/p/google-web-toolkit/source/detail?r=7942

Modified:
 /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java

=======================================
--- /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java Wed Oct 14 12:38:52 2009 +++ /trunk/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java Mon Apr 19 09:23:34 2010
@@ -193,10 +193,10 @@
       }

       try {
-        assert i == 3 : 1.2f;
+        assert i == 3 : 1.5f;
         fail();
       } catch (AssertionError e) {
-        assertEquals("1.2", e.getMessage());
+        assertEquals("1.5", e.getMessage());
       }

       try {

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to