summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-07-14 11:57:34 +0900
committerDaiki Ueno <ueno@gnu.org>2014-07-14 11:58:28 +0900
commite2087afbd6591cbb2f3e8ee738af6bd431671e19 (patch)
treef0e447d9f2f428f0ac6022512624da0f86eb8c89
parent17c15b507f1b8eab92e2a6c80b48d2b6871671c3 (diff)
downloadexternal_gettext-e2087afbd6591cbb2f3e8ee738af6bd431671e19.zip
external_gettext-e2087afbd6591cbb2f3e8ee738af6bd431671e19.tar.gz
external_gettext-e2087afbd6591cbb2f3e8ee738af6bd431671e19.tar.bz2
tests: Test empty literals in Vala test
* xgettext-vala-1: Test empty literals that do not affect the following lines.
-rw-r--r--gettext-tools/tests/ChangeLog6
-rwxr-xr-xgettext-tools/tests/xgettext-vala-12
2 files changed, 8 insertions, 0 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 017ea44..644c93c 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,5 +1,11 @@
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
* autopoint-2: Check if build-aux/config.rpath is created if
AC_CONFIG_AUX_DIR([build-aux]) is called.
diff --git a/gettext-tools/tests/xgettext-vala-1 b/gettext-tools/tests/xgettext-vala-1
index b59670b..7eda7be 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!") */
}