]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Test empty literals in Vala test
authorDaiki Ueno <ueno@gnu.org>
Mon, 14 Jul 2014 02:57:34 +0000 (11:57 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 14 Jul 2014 02:58:28 +0000 (11:58 +0900)
* xgettext-vala-1: Test empty literals that do not affect the
following lines.

gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-vala-1

index 017ea44d107357696cf8392db81bf333495995f1..644c93c3edca1f6833179a5bd61d586f646fd865 100644 (file)
@@ -1,3 +1,9 @@
+2014-07-14  Daiki Ueno  <ueno@gnu.org>
+
+       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  <ueno@gnu.org>
 
        tests: Test for AC_CONFIG_AUX_DIR usage in autopoint test
index b59670b4130a0fbba55bb26456d5647aedb6c277..7eda7be00eee0c54d98b086d6fcb5c9af801d2e5 100755 (executable)
@@ -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!") */
     }