mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- xpath.c result/XPath/expr/floats : clarified and cleanup
printing of abnormal floats in tests. Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu May 3 12:47:46 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* xpath.c result/XPath/expr/floats : clarified and cleanup
|
||||||
|
printing of abnormal floats in tests.
|
||||||
|
|
||||||
Thu May 3 10:25:19 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Thu May 3 10:25:19 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* HTMLparser.c: trying to fix the problem reported by Jonas Borgstr<74>m
|
* HTMLparser.c: trying to fix the problem reported by Jonas Borgstr<74>m
|
||||||
|
17
Makefile.am
17
Makefile.am
@ -83,7 +83,7 @@ testall : tests SVGtests SAXtests
|
|||||||
tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests
|
tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests
|
||||||
|
|
||||||
HTMLtests : testHTML
|
HTMLtests : testHTML
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## HTML regression tests"
|
@echo "## HTML regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -159,7 +159,7 @@ HTMLtests : testHTML
|
|||||||
|
|
||||||
|
|
||||||
XMLtests : xmllint
|
XMLtests : xmllint
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XML regression tests"
|
@echo "## XML regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -201,7 +201,7 @@ XMLtests : xmllint
|
|||||||
fi ; fi ; done)
|
fi ; fi ; done)
|
||||||
|
|
||||||
XMLenttests : xmllint
|
XMLenttests : xmllint
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XML entity subst regression tests"
|
@echo "## XML entity subst regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -221,7 +221,7 @@ XMLenttests : xmllint
|
|||||||
fi ; fi ; done)
|
fi ; fi ; done)
|
||||||
|
|
||||||
URItests : testURI
|
URItests : testURI
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## URI module regression tests"
|
@echo "## URI module regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -253,7 +253,7 @@ URItests : testURI
|
|||||||
fi ; fi ; done)
|
fi ; fi ; done)
|
||||||
|
|
||||||
XPathtests : testXPath
|
XPathtests : testXPath
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XPath regression tests"
|
@echo "## XPath regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -291,7 +291,7 @@ XPathtests : testXPath
|
|||||||
fi ; fi ; done ; fi ; done)
|
fi ; fi ; done ; fi ; done)
|
||||||
|
|
||||||
XPtrtests : testXPath
|
XPtrtests : testXPath
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XPointer regression tests"
|
@echo "## XPointer regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -314,7 +314,7 @@ XPtrtests : testXPath
|
|||||||
fi ; fi ; done ; fi ; done)
|
fi ; fi ; done ; fi ; done)
|
||||||
|
|
||||||
XIncludetests : xmllint
|
XIncludetests : xmllint
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XInclude regression tests"
|
@echo "## XInclude regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -352,6 +352,7 @@ SVGtests : xmllint
|
|||||||
fi ; fi ; done)
|
fi ; fi ; done)
|
||||||
|
|
||||||
SAXtests : testSAX
|
SAXtests : testSAX
|
||||||
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## SAX callbacks regression tests"
|
@echo "## SAX callbacks regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@ -370,7 +371,7 @@ SAXtests : testSAX
|
|||||||
|
|
||||||
|
|
||||||
Validtests : xmllint
|
Validtests : xmllint
|
||||||
@(rm -f .memdump ; touch .memdump)
|
@(echo > .memdump)
|
||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## Valid documents regression tests"
|
@echo "## Valid documents regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
|
@ -155,6 +155,7 @@ dnl
|
|||||||
dnl Extra flags
|
dnl Extra flags
|
||||||
dnl
|
dnl
|
||||||
XML_CFLAGS=""
|
XML_CFLAGS=""
|
||||||
|
RDL_LIBS=""
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Workaround for native compilers
|
dnl Workaround for native compilers
|
||||||
@ -230,8 +231,6 @@ else
|
|||||||
fi
|
fi
|
||||||
LDFLAGS=${_ldflags}
|
LDFLAGS=${_ldflags}
|
||||||
|
|
||||||
AC_SUBST(RDL_LIBS)
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl specific tests to setup DV's devel environment with debug etc ...
|
dnl specific tests to setup DV's devel environment with debug etc ...
|
||||||
dnl
|
dnl
|
||||||
|
@ -25,15 +25,15 @@ Object is a number : 0.00123
|
|||||||
|
|
||||||
========================
|
========================
|
||||||
Expression: 1 div 0
|
Expression: 1 div 0
|
||||||
Object is a number : inf
|
Object is a number : +Infinity
|
||||||
|
|
||||||
========================
|
========================
|
||||||
Expression: -1 div 0
|
Expression: -1 div 0
|
||||||
Object is a number : -inf
|
Object is a number : -Infinity
|
||||||
|
|
||||||
========================
|
========================
|
||||||
Expression: 0 div 0
|
Expression: 0 div 0
|
||||||
Object is a number : nan
|
Object is a number : NaN
|
||||||
|
|
||||||
========================
|
========================
|
||||||
Expression: (1 div 0) > 0
|
Expression: (1 div 0) > 0
|
||||||
|
15
xpath.c
15
xpath.c
@ -597,7 +597,20 @@ xmlXPathDebugDumpObject(FILE *output, xmlXPathObjectPtr cur, int depth) {
|
|||||||
else fprintf(output, "false\n");
|
else fprintf(output, "false\n");
|
||||||
break;
|
break;
|
||||||
case XPATH_NUMBER:
|
case XPATH_NUMBER:
|
||||||
fprintf(output, "Object is a number : %0g\n", cur->floatval);
|
switch (isinf(cur->floatval)) {
|
||||||
|
case 1:
|
||||||
|
fprintf(output, "Object is a number : +Infinity\n");
|
||||||
|
break;
|
||||||
|
case -1:
|
||||||
|
fprintf(output, "Object is a number : -Infinity\n");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (isnan(cur->floatval)) {
|
||||||
|
fprintf(output, "Object is a number : NaN\n");
|
||||||
|
} else {
|
||||||
|
fprintf(output, "Object is a number : %0g\n", cur->floatval);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case XPATH_STRING:
|
case XPATH_STRING:
|
||||||
fprintf(output, "Object is a string : ");
|
fprintf(output, "Object is a string : ");
|
||||||
|
Reference in New Issue
Block a user