Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added UTF8 tests #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions specs/utf8.json
Original file line number Diff line number Diff line change
@@ -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":"妙法蓮華経"}]}
18 changes: 18 additions & 0 deletions specs/utf8.yml
Original file line number Diff line number Diff line change
@@ -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: '紅豆生南國 春來發幾枝 願君多采擷 此物最相思'