]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Add more tests for C# Unicode handling
authorDaiki Ueno <ueno@gnu.org>
Mon, 1 Dec 2014 07:14:16 +0000 (16:14 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 1 Dec 2014 07:14:28 +0000 (16:14 +0900)
* xgettext-csharp-1: Test verbatim string.
* xgettext-csharp-2: Test Unicode identifiers.

gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-csharp-1
gettext-tools/tests/xgettext-csharp-2

index 746e6ac6a3f28bf0f878e54236b32fadd394cd40..2d1dbe7cbef87e3b6eea0f444e0db6ae1bb23eeb 100644 (file)
@@ -1,3 +1,9 @@
+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#
index bdebc1b0746f395d5d3d9e7707f48d5673ffbde7..a7a77e9bd42770dd3292d20ecfe873dca002119e 100755 (executable)
@@ -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}
index 8dff3a79ae0be68e17ee00bcfe5c60aec49697bf..cf8d4a248a96456a53e0fb87c9fdfcdf4b01ae07 100755 (executable)
@@ -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