From fe2f8d7123f22cf7755330ac8b289bc3cd838af3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 13 Nov 2009 17:12:22 -0800 Subject: New testcase which does some UTF-8 scanning, Unicode regexes, and @(freeform). --- tests/005/data | 10 ++++++++++ tests/005/query-1.expected | 21 +++++++++++++++++++++ tests/005/query-1.txr | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 tests/005/data create mode 100644 tests/005/query-1.expected create mode 100644 tests/005/query-1.txr (limited to 'tests/005') diff --git a/tests/005/data b/tests/005/data new file mode 100644 index 00000000..37c7c759 --- /dev/null +++ b/tests/005/data @@ -0,0 +1,10 @@ +春が来た (Haru-ga Kita/Spring has Come) + +春が来た 春が来た どこに来た +山に来た 里に来た 野にも来た + +花が咲く 花が咲く どこに咲く +山に咲く 里に咲く 野にも咲く + +鳥がなく 鳥がなく どこでなく +山でなく 里でなく 野でもなく diff --git a/tests/005/query-1.expected b/tests/005/query-1.expected new file mode 100644 index 00000000..ba7aa409 --- /dev/null +++ b/tests/005/query-1.expected @@ -0,0 +1,21 @@ +TITLE="春が来た" +ROMAJI="Haru-ga Kita" +ENGLISH="Spring has Come" +STANZA[0]="春が来た" +STANZA[1]="春が来た" +STANZA[2]="どこに来た" +STANZA[3]="山に来た" +STANZA[4]="里に来た" +STANZA[5]="野にも来た" +STANZA[6]="花が咲く" +STANZA[7]="花が咲く" +STANZA[8]="どこに咲く" +STANZA[9]="山に咲く" +STANZA[10]="里に咲く" +STANZA[11]="野にも咲く" +STANZA[12]="鳥がなく" +STANZA[13]="鳥がなく" +STANZA[14]="どこでなく" +STANZA[15]="山でなく" +STANZA[16]="里でなく" +STANZA[17]="野でもなく" diff --git a/tests/005/query-1.txr b/tests/005/query-1.txr new file mode 100644 index 00000000..e021f713 --- /dev/null +++ b/tests/005/query-1.txr @@ -0,0 +1,3 @@ +@{TITLE /[あ-ん一-耙]+/} (@ROMAJI/@ENGLISH) +@(freeform) +@(coll)@{STANZA /[^\n\x3000 ]+/}@(end)@/.*/ -- cgit v1.2.3