[libxslt] Add a couple of xsl:number tests
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Add a couple of xsl:number tests
- Date: Sun, 10 Apr 2016 11:47:39 +0000 (UTC)
commit 596de792a0e1d31e2be30d171c635adab6b16372
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sun Apr 10 13:34:03 2016 +0200
Add a couple of xsl:number tests
tests/docs/bug-187.xml | 1 +
tests/general/bug-187.err | 6 ++++++
tests/general/bug-187.out | 14 ++++++++++++++
tests/general/bug-187.xsl | 42 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/tests/docs/bug-187.xml b/tests/docs/bug-187.xml
new file mode 100644
index 0000000..69d62f2
--- /dev/null
+++ b/tests/docs/bug-187.xml
@@ -0,0 +1 @@
+<doc/>
diff --git a/tests/general/bug-187.err b/tests/general/bug-187.err
new file mode 100644
index 0000000..1534692
--- /dev/null
+++ b/tests/general/bug-187.err
@@ -0,0 +1,6 @@
+error
+xsl-number : negative value
+error
+xsl-number : negative value
+error
+xsl-number : negative value
diff --git a/tests/general/bug-187.out b/tests/general/bug-187.out
new file mode 100644
index 0000000..dd1645d
--- /dev/null
+++ b/tests/general/bug-187.out
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<result>
+ <number>4</number>
+ <number>0</number>
+ <number>9007199254740992</number>
+ <number>d</number>
+ <number>0</number>
+ <number>0</number>
+ <number>bktxhsoghkkf</number>
+ <number>IV</number>
+ <number>0</number>
+ <number>0</number>
+ <number>9007199254740992</number>
+</result>
diff --git a/tests/general/bug-187.xsl b/tests/general/bug-187.xsl
new file mode 100644
index 0000000..7a10a37
--- /dev/null
+++ b/tests/general/bug-187.xsl
@@ -0,0 +1,42 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output indent="yes"/>
+ <xsl:template match="/">
+ <result>
+ <number>
+ <xsl:number format="1" value="3.51"/>
+ </number>
+ <number>
+ <xsl:number format="1" value="-123.456"/>
+ </number>
+ <number>
+ <!-- 2 ** 53 -->
+ <xsl:number format="1" value="9007199254740992"/>
+ </number>
+ <number>
+ <xsl:number format="a" value="3.51"/>
+ </number>
+ <number>
+ <xsl:number format="a" value="-123.456"/>
+ </number>
+ <number>
+ <xsl:number format="a" value="0"/>
+ </number>
+ <number>
+ <xsl:number format="a" value="9007199254740992"/>
+ </number>
+ <number>
+ <xsl:number format="I" value="3.51"/>
+ </number>
+ <number>
+ <xsl:number format="I" value="-123.456"/>
+ </number>
+ <number>
+ <xsl:number format="I" value="0"/>
+ </number>
+ <number>
+ <xsl:number format="I" value="9007199254740992"/>
+ </number>
+ </result>
+ </xsl:template>
+</xsl:stylesheet>
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]