From 4394a588c2d8f07b12201592054234cb321f37e5 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 14 Jun 2010 18:03:50 +0000 Subject: XPath: Rewritten number->string conversion using CRT scientific format (much better XPath REC compliance) git-svn-id: http://pugixml.googlecode.com/svn/trunk@523 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_xalan_1.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/test_xpath_xalan_1.cpp') diff --git a/tests/test_xpath_xalan_1.cpp b/tests/test_xpath_xalan_1.cpp index 6114bd2..7be711f 100644 --- a/tests/test_xpath_xalan_1.cpp +++ b/tests/test_xpath_xalan_1.cpp @@ -388,7 +388,6 @@ TEST(xpath_xalan_math_9) CHECK_XPATH_STRING(c, STR("string(number('0.0004'))"), STR("0.0004")); CHECK_XPATH_STRING(c, STR("string(-1 * number('0.0004'))"), STR("-0.0004")); -#if 0 // $$ commented out temporarily because number formatting is not compliant yet CHECK_XPATH_STRING(c, STR("string(number('0.0000000000001'))"), STR("0.0000000000001")); CHECK_XPATH_STRING(c, STR("string(-1 * number('0.0000000000001'))"), STR("-0.0000000000001")); @@ -397,7 +396,6 @@ TEST(xpath_xalan_math_9) CHECK_XPATH_STRING(c, STR("string(number('0.0000000000001000000000000001'))"), STR("0.0000000000001000000000000001")); CHECK_XPATH_STRING(c, STR("string(-1 * number('0.0000000000001000000000000001'))"), STR("-0.0000000000001000000000000001")); -#endif CHECK_XPATH_STRING(c, STR("string(number('0.0012'))"), STR("0.0012")); CHECK_XPATH_STRING(c, STR("string(-1 * number('0.0012'))"), STR("-0.0012")); -- cgit v1.2.3