diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-12-01 16:14:16 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-12-01 16:14:28 +0900 |
commit | f71fc3490caab799312a5fe67a80e56d5d8c9d6d (patch) | |
tree | ea0c2ad03c3957b334101095e80c98cb199540d8 | |
parent | 0d2b9cd3c499ae73c91557bc970e17e32a0ba77c (diff) | |
download | external_gettext-f71fc3490caab799312a5fe67a80e56d5d8c9d6d.zip external_gettext-f71fc3490caab799312a5fe67a80e56d5d8c9d6d.tar.gz external_gettext-f71fc3490caab799312a5fe67a80e56d5d8c9d6d.tar.bz2 |
tests: Add more tests for C# Unicode handling
* xgettext-csharp-1: Test verbatim string.
* xgettext-csharp-2: Test Unicode identifiers.
-rw-r--r-- | gettext-tools/tests/ChangeLog | 6 | ||||
-rwxr-xr-x | gettext-tools/tests/xgettext-csharp-1 | 11 | ||||
-rwxr-xr-x | gettext-tools/tests/xgettext-csharp-2 | 4 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 746e6ac..2d1dbe7 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,5 +1,11 @@ 2014-12-01 Daiki Ueno <ueno@gnu.org> + tests: Add more tests for C# Unicode handling + * xgettext-csharp-1: Test verbatim string. + * xgettext-csharp-2: Test Unicode identifiers. + +2014-12-01 Daiki Ueno <ueno@gnu.org> + tests: Add test for Unicode surrogate characters in C# * xgettext-csharp-8: New file. * Makefile.am (TESTS): Add new test. diff --git a/gettext-tools/tests/xgettext-csharp-1 b/gettext-tools/tests/xgettext-csharp-1 index bdebc1b..a7a77e9 100755 --- a/gettext-tools/tests/xgettext-csharp-1 +++ b/gettext-tools/tests/xgettext-csharp-1 @@ -22,6 +22,10 @@ class TestCase { // commented out through #if String test5 = rm.GetString("Test String 5"); #endif + // verbatim string + String test5 = rm.GetString(@"first line +second line +third line"); } } EOF @@ -50,6 +54,13 @@ msgstr "" #. commented out through #if msgid "Test String 5" msgstr "" + +#. verbatim string +msgid "" +"first line\n" +"second line\n" +"third line" +msgstr "" EOF : ${DIFF=diff} diff --git a/gettext-tools/tests/xgettext-csharp-2 b/gettext-tools/tests/xgettext-csharp-2 index 8dff3a7..cf8d4a2 100755 --- a/gettext-tools/tests/xgettext-csharp-2 +++ b/gettext-tools/tests/xgettext-csharp-2 @@ -18,6 +18,10 @@ class TestCase { Console.WriteLine(GetString("Script: \U0001d49e")); // And now a comment with Русский and 日本語 and Unicode escapes: B\u00f6se B\u00fcbchen Console.WriteLine(GetString("This string has a multilingual comment")); + // Unicode identifiers. + String あ = ""; + String 𐀀 = ""; + int \u65e5\u672c\u8a9e = 1; } } EOF |