From 7832f59b3b55ce7ff2ecd2e96a689966840d6f24 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 28 Feb 2010 17:12:09 +0900 Subject: New testcase for freeform. --- tests/006/data | 9 +++++++++ tests/006/freeform-1.expected | 17 +++++++++++++++++ tests/006/freeform-1.txr | 5 +++++ 3 files changed, 31 insertions(+) create mode 100644 tests/006/data create mode 100644 tests/006/freeform-1.expected create mode 100644 tests/006/freeform-1.txr (limited to 'tests/006') diff --git a/tests/006/data b/tests/006/data new file mode 100644 index 00000000..3beacd87 --- /dev/null +++ b/tests/006/data @@ -0,0 +1,9 @@ +a b c +1 2 + +d e f +3 4 + +g h i +5 6 +7 8 diff --git a/tests/006/freeform-1.expected b/tests/006/freeform-1.expected new file mode 100644 index 00000000..4ffb8945 --- /dev/null +++ b/tests/006/freeform-1.expected @@ -0,0 +1,17 @@ +first[0]="a" +first[1]="d" +first[2]="g" +second[0]="b" +second[1]="e" +second[2]="h" +third[0]="c" +third[1]="f" +third[2]="i" +val_0[0]="1" +val_1[0]="2" +val_0[1]="3" +val_1[1]="4" +val_0[2]="5" +val_1[2]="6" +val_2[2]="7" +val_3[2]="8" diff --git a/tests/006/freeform-1.txr b/tests/006/freeform-1.txr new file mode 100644 index 00000000..93cf4210 --- /dev/null +++ b/tests/006/freeform-1.txr @@ -0,0 +1,5 @@ +@(collect) +@first @second @third +@(freeform) +@(coll)@{val /[0-9]+/}@(until)@\n@\n@(end) +@(end) -- cgit v1.2.3