>From d7a54e26921c9a11b87968cbdf792e9e52714707 Mon Sep 17 00:00:00 2001 From: Miguel Arruga Vivas Date: Fri, 4 Jan 2019 03:13:37 +0100 Subject: [PATCH 2/3] tests: Add Common Lisp and Scheme goto format specifier use cases. * gettext-tools/tests/format-lisp-2 (f-l-2.data): Add tests for goto format specifier. * gettext-tools/tests/format-scheme-2 (f-sc-2.data): Likewise. --- gettext-tools/tests/format-lisp-2 | 10 ++++++++++ gettext-tools/tests/format-scheme-2 | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/gettext-tools/tests/format-lisp-2 b/gettext-tools/tests/format-lisp-2 index a3958e989..09509976d 100755 --- a/gettext-tools/tests/format-lisp-2 +++ b/gettext-tools/tests/format-lisp-2 @@ -168,6 +168,16 @@ msgid "abc~{~c~c~}" msgid_plural "abc~{~c~c~}" msgstr[0] "xyz~{~c~d~}" msgstr[1] "xyz~{~c~d~}" +# Valid: goto format specifier on plural forms same +msgid "~*one abc" +msgid_plural "~d abcs" +msgstr[0] "~*one abc" +msgstr[1] "~d abcs" +# Valid: goto format specifier on plural forms different +msgid "~d abc" +msgid_plural "~d abcs" +msgstr[0] "~* xyz" +msgstr[1] "~d xyz" EOF : ${MSGFMT=msgfmt} diff --git a/gettext-tools/tests/format-scheme-2 b/gettext-tools/tests/format-scheme-2 index 5dd074511..7939ab12d 100755 --- a/gettext-tools/tests/format-scheme-2 +++ b/gettext-tools/tests/format-scheme-2 @@ -183,6 +183,16 @@ msgid "abc~{~c~c~}" msgid_plural "abc~{~c~c~}" msgstr[0] "xyz~{~c~d~}" msgstr[1] "xyz~{~c~d~}" +# Valid: goto format specifier on plural forms same +msgid "~*one abc" +msgid_plural "~d abcs" +msgstr[0] "~*one abc" +msgstr[1] "~d abcs" +# Valid: goto format specifier on plural forms different +msgid "~d abc" +msgid_plural "~d abcs" +msgstr[0] "~* xyz" +msgstr[1] "~d xyz" EOF : ${MSGFMT=msgfmt} -- 2.29.2