Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add some unit tests for ASCIIEncoding #35331

Conversation

GrabYourPitchforks
Copy link
Member

No runtime changes. Just adds some missing test cases for the ASCIIEncoding class.

}

[Fact]
public void GetByteCount_WithSingleCharNonAsciiReplacementFallback_ValidatesAscii()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewers: This test case currently fails due to a bug in the current implementation of ASCIIEncoding. The actual behavior is that GetByteCount returns 1, but correct behavior would instead be for it to throw ArgumentException.

I'm working on correcting this issue at the same time that the other ASCIIEncoding changes come online.

@karelz
Copy link
Member

karelz commented Mar 4, 2019

@GrabYourPitchforks what's the status? I don't see update in 2 weeks ... if you're not ready to push it forward, maybe we can close it and reopen when you're ready to give it the time it needs?

@GrabYourPitchforks
Copy link
Member Author

@karelz The corresponding coreclr change is held up in PR review. This corefx PR review is signed off; I'm just waiting for the coreclr change to go through first so I don't break the build.

@karelz
Copy link
Member

karelz commented Mar 6, 2019

OK, if it is 1-2 weeks away, I am fine keeping it open. Otherwise I would recommend to close it, until there is the right time for it ;)
Thanks!

@karelz
Copy link
Member

karelz commented Mar 18, 2019

@GrabYourPitchforks do you have better ETA?

@GrabYourPitchforks
Copy link
Member Author

This went in as part of d817d68.

@GrabYourPitchforks GrabYourPitchforks deleted the asciiencoding_tests_1 branch March 18, 2019 17:01
@karelz karelz added this to the 3.0 milestone Mar 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants