1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Fixed remaining edge case floating point math failure

This commit is contained in:
John Cortell 2010-03-11 13:04:42 +00:00
parent a36a7271e7
commit dc68630fb6

View file

@ -152,7 +152,7 @@ public class MIExpressionsTest extends BaseTestCase {
// Create a map of expressions and their expected values.
Map<String, String[]> tests = new HashMap<String, String[]>();
tests.put("3.1415 + 1.1111", new String[] { "0x4", "04", "100", "4", "4.2526", "4.2526" });
tests.put("3.14159 + 1.1111", new String[] { "0x4", "04", "100", "4", "4.2526", "4.2526" });
tests.put("100.0 / 3.0", new String[] { "0x21", "041", "100001", "33", "33.3333", "33.3333" });
tests.put("-100.0 / 3.0", new String[] { "0xffffffffffffffdf", "01777777777777777777737",
"1111111111111111111111111111111111111111111111111111111111011111", "-33", "-33.3333", "-33.3333" });