From c5724af9e108e3b0fb7d3af4d8cb688bad89104c Mon Sep 17 00:00:00 2001 From: John Boehr Date: Tue, 4 Jun 2013 00:24:09 -0700 Subject: [PATCH] Added UTF8 tests --- specs/utf8.json | 1 + specs/utf8.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 specs/utf8.json create mode 100644 specs/utf8.yml diff --git a/specs/utf8.json b/specs/utf8.json new file mode 100644 index 0000000..fe13ba0 --- /dev/null +++ b/specs/utf8.json @@ -0,0 +1 @@ +{"__ATTN__":"Do not edit this file; changes belong in the appropriate YAML file.","overview":"Make sure UTF8 works\n","tests":[{"name":"妙法蓮華経","desc":"妙法蓮華経","data":{"boolean":true},"template":"妙法蓮華経","expected":"妙法蓮華経"}]} \ No newline at end of file diff --git a/specs/utf8.yml b/specs/utf8.yml new file mode 100644 index 0000000..71cb683 --- /dev/null +++ b/specs/utf8.yml @@ -0,0 +1,18 @@ +overview: | + Make sure UTF8 works +tests: + - name: Lotus + desc: Lotus + data: { } + template: '妙法蓮華経' + expected: '妙法蓮華経' + - name: Bird + desc: Bird + data: { animal: '鳥' } + template: '{{animal}}は卵の中から抜け出ようと戦う。卵は世界だ。生まれようと欲する物は、一つの世界を破壊しなければならない。{{animal}}は神に向かって飛ぶ。神の名はAbraxasと言う。' + expected: '鳥は卵の中から抜け出ようと戦う。卵は世界だ。生まれようと欲する物は、一つの世界を破壊しなければならない。鳥は神に向かって飛ぶ。神の名はAbraxasと言う。' + - name: Red Bean + desc: Red Bean + data: { noms: '紅豆', location: '南國' } + template: '{{noms}}生{{location}} 春來發幾枝 願君多采擷 此物最相思' + expected: '紅豆生南國 春來發幾枝 願君多采擷 此物最相思' \ No newline at end of file