diff options
author | Mikko Korkalo <mikko@korkalo.fi> | 2013-02-11 11:28:08 +0400 |
---|---|---|
committer | Mikko Korkalo <mikko@korkalo.fi> | 2013-02-11 11:28:08 +0400 |
commit | 1c00ba554380e6c9f70b580d118debdac2053991 (patch) | |
tree | 20c2370889ad8f927fc09e74738f59ef99e89f1e | |
parent | 1ed1fcdde699607e36a6484e1e62017faec73816 (diff) |
improved encoder tests for I18N.MidEast
-rw-r--r-- | mcs/class/I18N/MidEast/Test/I18N.MidEast.Test.cs | 10 | ||||
-rw-r--r-- | mcs/class/I18N/MidEast/Test/texts/ascii-test.txt | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/I18N/MidEast/Test/I18N.MidEast.Test.cs b/mcs/class/I18N/MidEast/Test/I18N.MidEast.Test.cs index 22ee00aa59d..c8a72da262e 100644 --- a/mcs/class/I18N/MidEast/Test/I18N.MidEast.Test.cs +++ b/mcs/class/I18N/MidEast/Test/I18N.MidEast.Test.cs @@ -21,6 +21,9 @@ namespace MonoTests.I18N.MidEast { private global::I18N.Common.Manager Manager = global::I18N.Common.Manager.PrimaryManager; + //MidEast codepages + int[] cps = { 1254, 28599, 1254, 1255, 28598, 28596, 38598, 1256 }; + void AssertEncode (string utf8file, string decfile, int codepage) { AssertEncode(utf8file, decfile, codepage, null); @@ -103,10 +106,15 @@ namespace MonoTests.I18N.MidEast [Test] public void HandleFallback_Encode_All() { - int[] cps = { 1254, 1251, 1252 }; foreach (int cp in cps) HandleFallback_Encode_Generic(cp); } + [Test] + public void HandleFallback_Ascii_Test_All() + { + foreach (int cp in cps) + AssertEncode("Test/texts/ascii-test.txt", "Test/texts/ascii-test.txt", cp); + } [Test] public void CP1254_Encode () diff --git a/mcs/class/I18N/MidEast/Test/texts/ascii-test.txt b/mcs/class/I18N/MidEast/Test/texts/ascii-test.txt new file mode 100644 index 00000000000..1dcfb42a861 --- /dev/null +++ b/mcs/class/I18N/MidEast/Test/texts/ascii-test.txt @@ -0,0 +1 @@ +begin123end |