From 15828d4cde05a61835f0d9306e0d35769489bdc4 Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Mon, 22 Nov 2004 00:11:24 +0000 Subject: small change to previous fix for bug 153137, fixes bug 158840. added test * libxslt/pattern.c: small change to previous fix for bug 153137, fixes bug 158840. * tests/general/bug-157.*, tests/general/Makefile.am, tests/docs/bug-157.*, tests/docs/Makefile.am: added test for this --- tests/general/Makefile.am | 1 + tests/general/bug-157.err | 3 +++ tests/general/bug-157.out | 9 +++++++++ tests/general/bug-157.xsl | 22 ++++++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 tests/general/bug-157.err create mode 100644 tests/general/bug-157.out create mode 100644 tests/general/bug-157.xsl (limited to 'tests/general') diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index afd03208..98059cad 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -165,6 +165,7 @@ EXTRA_DIST = \ bug-155.out bug-155.xsl \ bug-156.err bug-156.out bug-156.xsl \ bug-156.imp1.imp bug-156.imp2.imp \ + bug-157.err bug-157.out bug-157.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-157.err b/tests/general/bug-157.err new file mode 100644 index 00000000..c0329a8b --- /dev/null +++ b/tests/general/bug-157.err @@ -0,0 +1,3 @@ +last() was 3 +last() was 3 +last() was 3 diff --git a/tests/general/bug-157.out b/tests/general/bug-157.out new file mode 100644 index 00000000..a5db75ff --- /dev/null +++ b/tests/general/bug-157.out @@ -0,0 +1,9 @@ + + + + 3 me + + 3 you + + 3 others + diff --git a/tests/general/bug-157.xsl b/tests/general/bug-157.xsl new file mode 100644 index 00000000..349fc8e2 --- /dev/null +++ b/tests/general/bug-157.xsl @@ -0,0 +1,22 @@ + + + + + + 4 + + + last() was 3 + 3 + + + 2 + + + 1 + + + + last() was + + -- cgit v1.2.3