summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/format-perl-mixed-2
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-08-01 20:47:21 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:47 +0200
commit96b799430a59f93deff8606b97567439027392fa (patch)
tree78b4c2b21b5b032921b10561ba1917f065d5961d /gettext-tools/tests/format-perl-mixed-2
parentee9622fb031196b7d9b6a8dc6b8893e15d5e499c (diff)
downloadexternal_gettext-96b799430a59f93deff8606b97567439027392fa.zip
external_gettext-96b799430a59f93deff8606b97567439027392fa.tar.gz
external_gettext-96b799430a59f93deff8606b97567439027392fa.tar.bz2
Use braces, not brackets, in Perl format strings.
Diffstat (limited to 'gettext-tools/tests/format-perl-mixed-2')
-rwxr-xr-xgettext-tools/tests/format-perl-mixed-238
1 files changed, 19 insertions, 19 deletions
diff --git a/gettext-tools/tests/format-perl-mixed-2 b/gettext-tools/tests/format-perl-mixed-2
index 696315c..09afbbb 100755
--- a/gettext-tools/tests/format-perl-mixed-2
+++ b/gettext-tools/tests/format-perl-mixed-2
@@ -1,7 +1,7 @@
#! /bin/sh
# Test checking of Perl format strings.
-# This test is for the combination of printf and bracketed format strings.
+# This test is for the combination of printf and brace format strings.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
@@ -9,32 +9,32 @@ trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles f-pm-2.data"
cat <<\EOF > f-pm-2.data
# Valid: normal case.
-#, perl-format, perl-bracket-format
-msgid "[foo] %d [bar] %s"
-msgstr "[bar] [foo] %d %s"
+#, perl-format, perl-brace-format
+msgid "{foo} %d {bar} %s"
+msgstr "{bar} {foo} %d %s"
# Invalid: missing argument.
-#, perl-format, perl-bracket-format
-msgid "[foo] %d [bar] %s"
-msgstr "[bar] %d %s"
+#, perl-format, perl-brace-format
+msgid "{foo} %d {bar} %s"
+msgstr "{bar} %d %s"
# Valid: missing argument but checking disabled.
-#, perl-format, no-perl-bracket-format
-msgid "[foo] %d [bar] %s"
-msgstr "[bar] %d %s"
+#, perl-format, no-perl-brace-format
+msgid "{foo} %d {bar} %s"
+msgstr "{bar} %d %s"
# Invalid: printf format reordered without position specifiers %1$, %2$.
-#, perl-format, perl-bracket-format
-msgid "[foo] %d [bar] %s"
-msgstr "[bar] %s [foo] %d"
+#, perl-format, perl-brace-format
+msgid "{foo} %d {bar} %s"
+msgstr "{bar} %s {foo} %d"
# Valid: same thing but checking disabled.
-#, no-perl-format, perl-bracket-format
-msgid "[foo] %d [bar] %s"
-msgstr "[bar] %s [foo] %d"
+#, no-perl-format, perl-brace-format
+msgid "{foo} %d {bar} %s"
+msgstr "{bar} %s {foo} %d"
# Invalid: unnamed vs. named arguments
#, perl-format
msgid "abc%sdef"
-msgstr "xyz[value]"
+msgstr "xyz{value}"
# Invalid: named vs. unnamed arguments
-#, perl-bracket-format
-msgid "abc[value]def"
+#, perl-brace-format
+msgid "abc{value}def"
msgstr "xyz%s"
EOF