-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fixing #24214 #25285
Conversation
There was a problem hiding this 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?
Added a couple of tests. |
There seems to be a whitespace error here, but it doesn't look like it was introduced by this PR. |
test/strings/basic.jl
Outdated
@@ -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 |
There was a problem hiding this comment.
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
I did not pay attention to it earlier, sorry! |
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.