tests: Improve test coverage of Lua scanner

* xgettext-lua-1: Test nested and unmatched brackets.
This commit is contained in:
Daiki Ueno 2014-12-09 13:44:49 +09:00
parent 7305b20110
commit 64d460e5ea
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-12-09 Daiki Ueno <ueno@gnu.org>
tests: Improve test coverage of Lua scanner
* xgettext-lua-1: Test nested and unmatched brackets.
2014-12-09 Daiki Ueno <ueno@gnu.org>
* xgettext-vala-1: Don't copy the test program out of the test

View File

@ -12,6 +12,8 @@ print(_("I said: \"This is a test.\""))
print(_('He said: "You\'re right!"'))
print(_([[I like brackets.]]))
print(_([===[Brackets are awesome!]===]))
print(_([===[==[Even nested brackets]==]===]))
print(_([===[Or even unmached number of '=' signs]==]===]))
print(_(hmm["nope"]))
print({_"yep"})
print(_["nope"])
@ -52,6 +54,12 @@ msgstr ""
msgid "Brackets are awesome!"
msgstr ""
msgid "==[Even nested brackets]=="
msgstr ""
msgid "Or even unmached number of '=' signs]=="
msgstr ""
msgid "yep"
msgstr ""