From 4e9909066731067d8e256ca25d8d54944105bc5e Mon Sep 17 00:00:00 2001 From: money_seshu Dronamraju Date: Mon, 7 Mar 2011 12:12:11 +0800 Subject: Fix a problem with ESXLT date:add() with January Also adds a regression test provided by Michael Ludwig --- tests/docs/date_add.xml | 1 + tests/general/Makefile.am | 2 +- tests/general/date_add.out | 9 +++++++++ tests/general/date_add.xsl | 16 ++++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/docs/date_add.xml create mode 100644 tests/general/date_add.out create mode 100644 tests/general/date_add.xsl (limited to 'tests') diff --git a/tests/docs/date_add.xml b/tests/docs/date_add.xml new file mode 100644 index 00000000..69d62f2c --- /dev/null +++ b/tests/docs/date_add.xml @@ -0,0 +1 @@ + diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index 7207e15f..8f32fe7f 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -182,7 +182,7 @@ EXTRA_DIST = \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ - inner.xsl + inner.xsl date_add.xsl all: diff --git a/tests/general/date_add.out b/tests/general/date_add.out new file mode 100644 index 00000000..fbca16b4 --- /dev/null +++ b/tests/general/date_add.out @@ -0,0 +1,9 @@ + + + 2001-01-04 + 2001-02-04 + 2001-12-04 + 2001-12-31 + 2002-01 + 2002-01-02 + diff --git a/tests/general/date_add.xsl b/tests/general/date_add.xsl new file mode 100644 index 00000000..0ef39c5a --- /dev/null +++ b/tests/general/date_add.xsl @@ -0,0 +1,16 @@ + + + + + + + + + + + + + -- cgit v1.2.3