Skip to content

Commit 979ff4e

Browse files
authored
Merge pull request #3894 from CodaFi/string-cheese-to-go
Restore test lost in transition to String(describing:)
2 parents cbe2c0b + f2165a6 commit 979ff4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

validation-test/stdlib/Unicode.swift.gyb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,8 @@ StringTests.test("StreamableConformance") {
23802380
forStringsWithUnpairedSurrogates {
23812381
(test: UTF16Test, subject: String) -> Void in
23822382
let expected = test.scalarsHead + test.scalarsRepairedTail
2383-
let printedSubject = subject
2383+
var printedSubject = ""
2384+
subject.write(to: &printedSubject)
23842385
let actual = printedSubject.unicodeScalars.map { $0.value }
23852386
expectEqual(expected, actual)
23862387
}

0 commit comments

Comments
 (0)