Skip to content

std::ascii: Fix is_digit() and is_control() #10685

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

Merged
merged 2 commits into from
Nov 27, 2013
Merged

std::ascii: Fix is_digit() and is_control() #10685

merged 2 commits into from
Nov 27, 2013

Conversation

ebiggers
Copy link
Contributor

is_digit() incorrectly returned false for '0'.
is_control() incorrectly returned true for ' ' (space).

is_digit() incorrectly returned false for '0'.
is_control() incorrectly returned true for ' ' (space).
@alexcrichton
Copy link
Member

Can you add tests for these two edge cases as well?

@ebiggers
Copy link
Contributor Author

Done. I added tests for a few other edge cases in those functions as well.

bors added a commit that referenced this pull request Nov 27, 2013
is_digit() incorrectly returned false for '0'.
is_control() incorrectly returned true for ' ' (space).
@bors bors closed this Nov 27, 2013
@bors bors merged commit 6488324 into rust-lang:master Nov 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants