diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-10-08 12:00:51 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-10-08 12:00:51 +0900 |
commit | fa8e859254eac21d8742b47a55b31f67c267a6c8 (patch) | |
tree | 06396a45bff029e9792762620c16f5f5c1c23ed0 /gettext-tools/tests/xgettext-c-2 | |
parent | a9be7bd5e317cb726fb93ca7e145c56c4f05dcfd (diff) | |
download | external_gettext-fa8e859254eac21d8742b47a55b31f67c267a6c8.zip external_gettext-fa8e859254eac21d8742b47a55b31f67c267a6c8.tar.gz external_gettext-fa8e859254eac21d8742b47a55b31f67c267a6c8.tar.bz2 |
tests: Improve test coverage of C and Vala scanners
* xgettext-c-4: Check more trigraphs.
* xgettext-c-2: Check floating point literal.
* xgettext-c-19: Check out-of-range Unicode character, "\U"
character escape, incomplete "\u" escape, and surrogates.
* xgettext-vala-1: Check unterminated regexp literal, floating
point literal, string template, "/=" operator, multi-line
comments, and backslash-escaped character inside regexp literal.
Diffstat (limited to 'gettext-tools/tests/xgettext-c-2')
-rwxr-xr-x | gettext-tools/tests/xgettext-c-2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-c-2 b/gettext-tools/tests/xgettext-c-2 index 550de6c..0c53be8 100755 --- a/gettext-tools/tests/xgettext-c-2 +++ b/gettext-tools/tests/xgettext-c-2 @@ -19,6 +19,8 @@ static int c = ''; _("after character") static char *s = ""; _("after string") +static double d = 10e-1; +_("after double") EOF : ${XGETTEXT=xgettext} @@ -41,6 +43,9 @@ msgstr "" msgid "after string" msgstr "" + +msgid "after double" +msgstr "" EOF : ${DIFF=diff} |