File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,10 @@ StringForPrintObjectTests.test("NSStringUTF8") {
7878 expectEqual ( " πββ
ββοΈβοΈβοΈ " , String ( reflecting: nsUTF16) )
7979 expectEqual ( " \" πββ
ββοΈβοΈβοΈ \" " , String ( reflecting: newNSUTF16) )
8080
81- if #available( SwiftStdlib 6 . 0 , * ) {
81+ if #available( SwiftStdlib 6 . 1 , * ) {
8282 expectEqual ( " πββ
ββοΈβοΈβοΈ \n " , printed)
83+ } else {
84+ expectEqual ( " \" πββ
ββοΈβοΈβοΈ \" \n " , printed)
8385 }
8486
8587 expectEqual ( printed, debug)
Original file line number Diff line number Diff line change @@ -101,11 +101,16 @@ StringForPrintObjectTests.test("DontBridgeThisStruct") {
101101}
102102#endif
103103
104- if #available( SwiftStdlib 6 . 0 , * ) {
104+ if #available( SwiftStdlib 6 . 1 , * ) {
105105 StringForPrintObjectTests . test ( " String " ) {
106106 let printed = _stringForPrintObject ( " hello \n world " )
107107 expectEqual ( printed, " hello \n world \n " )
108108 }
109+ } else {
110+ StringForPrintObjectTests . test ( " String " ) {
111+ let printed = _stringForPrintObject ( " hello \n world " )
112+ expectEqual ( printed, " \" hello \\ nworld \" \n " )
113+ }
109114}
110115
111116class RefCountedObj {
You canβt perform that action at this time.
0 commit comments