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

Fixing #24214 #25285

Closed
wants to merge 4 commits into from
Closed

Conversation

Vaibhavdixit02
Copy link
Contributor

@Vaibhavdixit02 Vaibhavdixit02 commented Dec 27, 2017

I did a PR previously for this but after #24999 I felt that it would be better to do the changes again because some of the files changed in the previous PR were altered.

Fixes #24214.

Copy link
Member

@StefanKarpinski StefanKarpinski left a comment

Choose a reason for hiding this comment

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

Looks good, how about adding a test?

@Vaibhavdixit02
Copy link
Contributor Author

Added a couple of tests.

@StefanKarpinski
Copy link
Member

There seems to be a whitespace error here, but it doesn't look like it was introduced by this PR.

@@ -428,6 +428,9 @@ end
end
# Check seven-byte sequences, should be invalid
@test isvalid(String, UInt8[0xfe, 0x80, 0x80, 0x80, 0x80, 0x80]) == false
# issue 24214, Check valid SubString
@test isvalid(SubString("teststring",1,5)) == true
@test isvalid(SubString(String(UInt8[0xfe, 0x80, 0x80, 0x80, 0x80, 0x80]), 1,2)) == false
Copy link
Member

Choose a reason for hiding this comment

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

There's trailing whitespace on the end of this line

@Vaibhavdixit02
Copy link
Contributor Author

I did not pay attention to it earlier, sorry!

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.

no method matching isvalid(::SubString{String})
4 participants