Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/I18N/CJK/Test/I18N.CJK.Test.cs')
-rwxr-xr-xmcs/class/I18N/CJK/Test/I18N.CJK.Test.cs138
1 files changed, 0 insertions, 138 deletions
diff --git a/mcs/class/I18N/CJK/Test/I18N.CJK.Test.cs b/mcs/class/I18N/CJK/Test/I18N.CJK.Test.cs
index dc093c8b0f0..71061d83e4b 100755
--- a/mcs/class/I18N/CJK/Test/I18N.CJK.Test.cs
+++ b/mcs/class/I18N/CJK/Test/I18N.CJK.Test.cs
@@ -337,75 +337,6 @@ namespace MonoTests.I18N.CJK
Assert.AreEqual (1, d.GetChars (new byte [] {0xA1}, 0, 1, chars, 0, true), "#5");
Assert.AreEqual (new char [] {'\u30FB'}, chars, "#6");
}
-
- [Test]
- public void Decoder936Refresh ()
- {
- Encoding e = Encoding.GetEncoding (936);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xB0}, 0, 1, chars, 0, false), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0xA1}, 0, 1, chars, 0, false), "#3");
- Assert.AreEqual (new char [] {'\u554A'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0xB0}, 0, 1, chars, 0, true), "#5");
- Assert.AreEqual (new char [] {'?'}, chars, "#6");
- }
-
- [Test]
- public void Decoder949Refresh ()
- {
- Encoding e = Encoding.GetEncoding (949);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0x81}, 0, 1, chars, 0, false), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0x41}, 0, 1, chars, 0, false), "#3");
- Assert.AreEqual (new char [] {'\uAC02'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0x81}, 0, 1, chars, 0, true), "#5");
- Assert.AreEqual (new char [] {'?'}, chars, "#6");
- }
-
- [Test]
- public void Decoder950Refresh ()
- {
- Encoding e = Encoding.GetEncoding (950);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xF9}, 0, 1, chars, 0, false), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0x40}, 0, 1, chars, 0, false), "#3");
- Assert.AreEqual (new char [] {'\u7E98'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0xF9}, 0, 1, chars, 0, true), "#5");
- Assert.AreEqual (new char [] {'?'}, chars, "#6");
- }
#endif
@@ -431,75 +362,6 @@ namespace MonoTests.I18N.CJK
Assert.AreEqual (0, d.GetChars (new byte [] {0xA1}, 0, 1, chars, 0), "#5");
Assert.AreEqual (new char [] {'\0'}, chars, "#6");
}
-
- [Test]
- public void Decoder936NoRefresh ()
- {
- Encoding e = Encoding.GetEncoding (936);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xB0}, 0, 1, chars, 0), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0xA1}, 0, 1, chars, 0), "#3");
- Assert.AreEqual (new char [] {'\u554A'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xB0}, 0, 1, chars, 0), "#5");
- Assert.AreEqual (new char [] {'\0'}, chars, "#6");
- }
-
- [Test]
- public void Decoder949NoRefresh ()
- {
- Encoding e = Encoding.GetEncoding (949);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0x81}, 0, 1, chars, 0), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0x41}, 0, 1, chars, 0), "#3");
- Assert.AreEqual (new char [] {'\uAC02'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0x81}, 0, 1, chars, 0), "#5");
- Assert.AreEqual (new char [] {'\0'}, chars, "#6");
- }
-
- [Test]
- public void Decoder950NoRefresh ()
- {
- Encoding e = Encoding.GetEncoding (950);
- Decoder d = e.GetDecoder ();
- char [] chars;
-
- // incomplete
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xF9}, 0, 1, chars, 0), "#1");
- Assert.AreEqual (new char [] {'\0'}, chars, "#2");
-
- // became complete
- chars = new char [1];
- Assert.AreEqual (1, d.GetChars (new byte [] {0x40}, 0, 1, chars, 0), "#3");
- Assert.AreEqual (new char [] {'\u7E98'}, chars, "#4");
-
- // incomplete but refreshed
- chars = new char [1];
- Assert.AreEqual (0, d.GetChars (new byte [] {0xF9}, 0, 1, chars, 0), "#5");
- Assert.AreEqual (new char [] {'\0'}, chars, "#6");
- }
#endregion
#region Korean