diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-02-07 14:24:28 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-02-07 14:24:33 -0800 |
| commit | df3da8ed59e685b7e47feef16c90d05fc291837a (patch) | |
| tree | 9fbdbac48e8c5e1c56685cbe6669b50e8569c9c1 | |
| parent | 3661754ed90e7b85bcfe61d6b44a65436c9c4c3f (diff) | |
Added unicode test.
| -rw-r--r-- | tests/text.nom | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/text.nom b/tests/text.nom index 2e08e45..6b4f2b5 100644 --- a/tests/text.nom +++ b/tests/text.nom @@ -13,3 +13,12 @@ assume ("\n" = (newline)) or barf "Text literals failed." assume (("x" + "y") = "xy") say "Text test passed." + +immediately: + parse [アクション %spec %body] as: action %spec %body + +%こんにちは <- "こんにちは" +アクション [% と言う]: + "\(%)世界" + +assume ((%こんにちは と言う) = "こんにちは世界") or barf "Unicode doesn't work" |
