0
0
mirror of https://github.com/zeux/pugixml.git synced 2025-01-14 09:57:57 +08:00

tests: Minor fix for MinGW 3.4

git-svn-id: http://pugixml.googlecode.com/svn/trunk@709 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-08-30 05:01:19 +00:00
parent fb0f5d8c94
commit 42f36f1a7d

View File

@ -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);
}