From: Daiki Ueno Date: Mon, 14 Jul 2014 02:57:34 +0000 (+0900) Subject: tests: Test empty literals in Vala test X-Git-Tag: v0.19.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2087afbd6591cbb2f3e8ee738af6bd431671e19;p=thirdparty%2Fgettext.git tests: Test empty literals in Vala test * xgettext-vala-1: Test empty literals that do not affect the following lines. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 017ea44d1..644c93c3e 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,9 @@ +2014-07-14 Daiki Ueno + + tests: Test empty literals in Vala test + * xgettext-vala-1: Test empty literals that do not affect the + following lines. + 2014-07-14 Daiki Ueno tests: Test for AC_CONFIG_AUX_DIR usage in autopoint test diff --git a/gettext-tools/tests/xgettext-vala-1 b/gettext-tools/tests/xgettext-vala-1 index b59670b41..7eda7be00 100755 --- a/gettext-tools/tests/xgettext-vala-1 +++ b/gettext-tools/tests/xgettext-vala-1 @@ -7,10 +7,12 @@ cat <<\EOF > xg-vala-1.vala int main (string[] args) { var s1 = "Simple string, " + " no gettext needed"; var c1 = '\''; + var empty = ""; // This is a C++ style comment var s2 = _("Extract this first string"); var s3 = "Prefix _(" + _("Extract this second string") + ") Postfix"; + var empty_verbatim = """"""; if (args[0] == _("Extract this thirth string")) { /* _("This is a comment and must not be extracted!") */ }