From 1357aa110c41f558e18342e3597c7168450acac8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 1 Oct 2011 20:48:01 -0700 Subject: New test case, covering some filtering from HTML/XML. * Makefile: Defined TXR_ARGS for new test case. * tests/008/students.expected: New file. * tests/008/students.txr: New file. * tests/008/students.xml: New file. --- ChangeLog | 10 ++++++++++ Makefile | 1 + tests/008/students.expected | 0 tests/008/students.txr | 22 ++++++++++++++++++++++ tests/008/students.xml | 9 +++++++++ 5 files changed, 42 insertions(+) create mode 100644 tests/008/students.expected create mode 100644 tests/008/students.txr create mode 100644 tests/008/students.xml diff --git a/ChangeLog b/ChangeLog index ac300d0f..36f2e70c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-10-01 Kaz Kylheku + + New test case, covering some filtering from HTML/XML. + + * Makefile: Defined TXR_ARGS for new test case. + + * tests/008/students.expected: New file. + * tests/008/students.txr: New file. + * tests/008/students.xml: New file. + 2011-10-01 Kaz Kylheku * filter.c (filters, filter_init): Serious gc bug fixed: neglected to diff --git a/Makefile b/Makefile index 93c5b479..f85ef243 100644 --- a/Makefile +++ b/Makefile @@ -88,6 +88,7 @@ tests/005/%: TXR_ARGS := $(top_srcdir)/tests/005/data tests/006/%: TXR_ARGS := $(top_srcdir)/tests/006/data tests/008/tokenize.ok: TXR_ARGS := $(top_srcdir)/tests/008/data tests/008/configfile.ok: TXR_ARGS := $(top_srcdir)/tests/008/configfile +tests/008/students.ok: TXR_ARGS := $(top_srcdir)/tests/008/students.xml tests/002/%: TXR_SCRIPT_ON_CMDLINE := y diff --git a/tests/008/students.expected b/tests/008/students.expected new file mode 100644 index 00000000..e69de29b diff --git a/tests/008/students.txr b/tests/008/students.txr new file mode 100644 index 00000000..5fc4e25c --- /dev/null +++ b/tests/008/students.txr @@ -0,0 +1,22 @@ + +@(collect) +@ (cases) + +@ (or) +@ (bind PET_TYPE "none") +@ (bind PET_NAME "") +@ (end) +@(until) + +@(end) +@(output :filter :from_html) +NAME G DOB PET +@ (repeat) +@{NAME 12} @GENDER @YEAR-@MONTH-@DAY @PET_TYPE @PET_NAME +@ (end) +@(end) diff --git a/tests/008/students.xml b/tests/008/students.xml new file mode 100644 index 00000000..05c2b162 --- /dev/null +++ b/tests/008/students.xml @@ -0,0 +1,9 @@ + + + + + + + + + -- cgit v1.2.3