-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Test foreign strings on invalid content more thoroughly #24874
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
Conversation
let kCFStringEncodingASCII: UInt32 = 0x0600 | ||
|
||
private func testForeignContiguous(slowString: NSSlowString, string: String) { |
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.
This is just the bit below pulled out so I can reuse it for the second set of data
@swift-ci please test |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
"LLDB :: SwiftREPL/BreakpointSimple.test" is absolutely not caused by adding unrelated tests |
@swift-ci please test osx platform |
@swift-ci please test |
Build failed |
This time Interpreter/switch_resilience.swift :/ still not caused by this |
@swift-ci please test |
Build failed |
Test run hung >.< |
@swift-ci please test |
Build failed |
@swift-ci please test linux platform |
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.
LGTM
|
||
// They become fast when mutated | ||
slowString.makeNative() | ||
expectTrue(slowString.isFastUTF8) |
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.
Oh right, this test predates contiguous strings proposal. You can go this route, or update the test to use isContiguousUTF8
, makeContiguousUTF8()
, and withUTF8()
.
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.
Noted. I'm probably going to leave it as unchanged as possible for now.
No description provided.