We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cbe2c0b + f2165a6 commit 979ff4eCopy full SHA for 979ff4e
validation-test/stdlib/Unicode.swift.gyb
@@ -2380,7 +2380,8 @@ StringTests.test("StreamableConformance") {
2380
forStringsWithUnpairedSurrogates {
2381
(test: UTF16Test, subject: String) -> Void in
2382
let expected = test.scalarsHead + test.scalarsRepairedTail
2383
- let printedSubject = subject
+ var printedSubject = ""
2384
+ subject.write(to: &printedSubject)
2385
let actual = printedSubject.unicodeScalars.map { $0.value }
2386
expectEqual(expected, actual)
2387
}
0 commit comments