aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2020-11-25 09:48:19 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2020-11-25 09:48:19 -0800
commit8afc1239a3f506bcb2ff79f909108751cf443120 (patch)
treeb490801f2cc8d75e35e6d12e8835533b80462c01
parent5f97d5d66f65197417c80de8d10487c6ad96aff1 (diff)
downloadpugixml-8afc1239a3f506bcb2ff79f909108751cf443120.zip
pugixml-8afc1239a3f506bcb2ff79f909108751cf443120.tar.gz
pugixml-8afc1239a3f506bcb2ff79f909108751cf443120.tar.bz2
tests: Fix test fallout for MSVC6
One more XPath test falls prey to MSVC6 NaN comparison codegen issues.
-rw-r--r--tests/test_xpath_variables.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp
index adc4464..1a1fc19 100644
--- a/tests/test_xpath_variables.cpp
+++ b/tests/test_xpath_variables.cpp
@@ -661,7 +661,9 @@ TEST_XML(xpath_variables_type_conversion, "<node>15</node>")
CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("string($b) = '42'"), &set, true);
CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("boolean($c) = true()"), &set, true);
+#ifndef MSVC6_NAN_BUG
CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("number($c) = 0"), &set, false);
+#endif
CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("string($c) = 'test'"), &set, true);
CHECK_XPATH_BOOLEAN_VAR(xml_node(), STR("boolean($d) = true()"), &set, true);