Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Text.Encoding.Tests fail on Android #50573

Closed
38 tasks
mdh1418 opened this issue Apr 1, 2021 · 1 comment · Fixed by #53172
Closed
38 tasks

System.Text.Encoding.Tests fail on Android #50573

mdh1418 opened this issue Apr 1, 2021 · 1 comment · Fixed by #53172

Comments

@mdh1418
Copy link
Member

mdh1418 commented Apr 1, 2021

Several tests from System.Text.Encoding.Tests fail on Android

  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "UTF7 Encoding Example", index: 1, count: 2, expected: [84, 70])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xd800\xd800", index: 0, count: 2, expected: [43, 50, 65, 68, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "abc", index: 0, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 0, count: 2, expected: [43, 50, 65, 68, 99, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xd800", index: 0, count: 1, expected: [43, 50, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐏿", index: 0, count: 2, expected: [43, 50, 65, 68, 102, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "�", index: 0, count: 1, expected: [43, 47, 47, 48, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "abc", index: 3, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "A\t\r\n /z", index: 0, count: 7, expected: [65, 9, 13, 10, 32, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdfff", index: 0, count: 1, expected: [43, 51, 47, 56, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 0, count: 1, expected: [43, 50, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xffff", index: 0, count: 1, expected: [43, 47, 47, 56, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "-", index: 0, count: 1, expected: [45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "๙ב", index: 0, count: 2, expected: [43, 68, 108, 107, 70, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00", index: 0, count: 1, expected: [43, 51, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "+-", index: 0, count: 2, expected: [43, 45, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\t\n\rXYZabc123", index: 0, count: 12, expected: [9, 10, 13, 88, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "+", index: 0, count: 1, expected: [43, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "", index: 0, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00\xd800", index: 0, count: 2, expected: [43, 51, 65, 68, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "Å", index: 0, count: 1, expected: [43, 73, 83, 115, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00\xdc00", index: 0, count: 2, expected: [43, 51, 65, 68, 99, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xfffe", index: 0, count: 1, expected: [43, 47, 47, 52, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "ΠΣ", index: 0, count: 2, expected: [43, 65, 54, 65, 68, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\f", index: 0, count: 1, expected: [43, 65, 65, 119, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "a𐀀b", index: 0, count: 4, expected: [97, 43, 50, 65, 68, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 1, count: 1, expected: [43, 51, 65, 65, 45])
  • System.Text.Encodings.Tests.EncodingMiscTests.VerifyCodePageAttributes(codepage: 65000, name: "utf-7", bodyName: "utf-7", headerName: "utf-7", isBrowserDisplay: False, isBrowserSave: False, isMailNewsDisplay: True, isMailNewsSave: True, windowsCodePage: 1200)
  • System.Text.Encodings.Tests.EncodingMiscTests.NormalizationTest(codepage: 65000, normalized: False, normalizedC: False, normalizedD: False, normalizedKC: False, normalizedKD: False)
  • System.Text.Tests.EncodingGetEncodingTest.GetEncoding_WebName
  • System.Text.Tests.EncodingGetEncodingTest.TestEncodingNameAndCopdepageNumber
  • System.Text.Tests.EncodingGetEncodingTest.GetEncoding_EncodingName
  • System.Text.Tests.UTF7EncodingTests.EqualsTest
  • System.Text.Tests.UTF7EncodingTests.EncodingName
  • System.Text.Tests.UTF7EncodingTests.CodePage
  • System.Text.Tests.UTF7EncodingTests.Clone
  • System.Text.Tests.UTF7EncodingTests.WebName
  • System.Text.Tests.UTF7EncodingTests.IsSingleByte

Based on CI runs from #50095

@ghost
Copy link

ghost commented Apr 1, 2021

Tagging subscribers to this area: @tarekgh, @krwq, @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

Several tests from System.Text.Encoding.Tests fail on Android

  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "UTF7 Encoding Example", index: 1, count: 2, expected: [84, 70])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xd800\xd800", index: 0, count: 2, expected: [43, 50, 65, 68, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "abc", index: 0, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 0, count: 2, expected: [43, 50, 65, 68, 99, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xd800", index: 0, count: 1, expected: [43, 50, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐏿", index: 0, count: 2, expected: [43, 50, 65, 68, 102, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "�", index: 0, count: 1, expected: [43, 47, 47, 48, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "abc", index: 3, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "A\t\r\n /z", index: 0, count: 7, expected: [65, 9, 13, 10, 32, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdfff", index: 0, count: 1, expected: [43, 51, 47, 56, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 0, count: 1, expected: [43, 50, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xffff", index: 0, count: 1, expected: [43, 47, 47, 56, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "-", index: 0, count: 1, expected: [45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "๙ב", index: 0, count: 2, expected: [43, 68, 108, 107, 70, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00", index: 0, count: 1, expected: [43, 51, 65, 65, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "+-", index: 0, count: 2, expected: [43, 45, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\t\n\rXYZabc123", index: 0, count: 12, expected: [9, 10, 13, 88, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "+", index: 0, count: 1, expected: [43, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "", index: 0, count: 0, expected: [])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00\xd800", index: 0, count: 2, expected: [43, 51, 65, 68, 89, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "Å", index: 0, count: 1, expected: [43, 73, 83, 115, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xdc00\xdc00", index: 0, count: 2, expected: [43, 51, 65, 68, 99, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\xfffe", index: 0, count: 1, expected: [43, 47, 47, 52, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "ΠΣ", index: 0, count: 2, expected: [43, 65, 54, 65, 68, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "\f", index: 0, count: 1, expected: [43, 65, 65, 119, 45])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "a𐀀b", index: 0, count: 4, expected: [97, 43, 50, 65, 68, ...])
  • System.Text.Tests.UTF7EncodingEncode.Encode_Basic(source: "𐀀", index: 1, count: 1, expected: [43, 51, 65, 65, 45])
  • System.Text.Encodings.Tests.EncodingMiscTests.VerifyCodePageAttributes(codepage: 65000, name: "utf-7", bodyName: "utf-7", headerName: "utf-7", isBrowserDisplay: False, isBrowserSave: False, isMailNewsDisplay: True, isMailNewsSave: True, windowsCodePage: 1200)
  • System.Text.Encodings.Tests.EncodingMiscTests.NormalizationTest(codepage: 65000, normalized: False, normalizedC: False, normalizedD: False, normalizedKC: False, normalizedKD: False)
  • System.Text.Tests.EncodingGetEncodingTest.GetEncoding_WebName
  • System.Text.Tests.EncodingGetEncodingTest.TestEncodingNameAndCopdepageNumber
  • System.Text.Tests.EncodingGetEncodingTest.GetEncoding_EncodingName
  • System.Text.Tests.UTF7EncodingTests.EqualsTest
  • System.Text.Tests.UTF7EncodingTests.EncodingName
  • System.Text.Tests.UTF7EncodingTests.CodePage
  • System.Text.Tests.UTF7EncodingTests.Clone
  • System.Text.Tests.UTF7EncodingTests.WebName
  • System.Text.Tests.UTF7EncodingTests.IsSingleByte

Based on CI runs from #50095

Author: mdh1418
Assignees: -
Labels:

area-System.Text.Encoding, os-android

Milestone: 6.0.0

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Apr 1, 2021
@eiriktsarpalis eiriktsarpalis removed the untriaged New issue has not been triaged by the area owner label Apr 22, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 24, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label May 24, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants