summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-30 05:01:19 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-30 05:01:19 +0000
commit42f36f1a7dd89c239587310873087e7401beafa4 (patch)
tree8c2f7ff9d6c76ec39daa68c842c06e00e36a0860 /tests
parentfb0f5d8c94d6a7ecb830656419e914a3ea4c0c7c (diff)
tests: Minor fix for MinGW 3.4
git-svn-id: http://pugixml.googlecode.com/svn/trunk@709 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xpath_xalan_1.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_xpath_xalan_1.cpp b/tests/test_xpath_xalan_1.cpp
index b862b1e..28db218 100644
--- a/tests/test_xpath_xalan_1.cpp
+++ b/tests/test_xpath_xalan_1.cpp
@@ -361,7 +361,9 @@ TEST_XML(xpath_xalan_math_8, "<k>0.0004</k>")
CHECK_XPATH_BOOLEAN(doc, STR("(number(1.75) = (0.109375 * 16))"), true);
CHECK_XPATH_NUMBER(doc, STR("number(k)"), 0.0004);
CHECK_XPATH_NUMBER(doc, STR("number(4 div 10000)"), 0.0004);
- CHECK_XPATH_BOOLEAN(doc, STR("(number(k) = (4 div 10000))"), true);
+
+ // +0 works around extended precision in div on x86 (this is needed for some configurations in MinGW 3.4)
+ CHECK_XPATH_BOOLEAN(doc, STR("(number(k) = (4 div 10000 + 0))"), true);
CHECK_XPATH_NUMBER(doc, STR("number(0.0001 * 4)"), 0.0004);
CHECK_XPATH_BOOLEAN(doc, STR("(number(k) = (0.0001 * 4))"), true);
}