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") {
78
78
expectEqual ( " πββ
ββοΈβοΈβοΈ " , String ( reflecting: nsUTF16) )
79
79
expectEqual ( " \" πββ
ββοΈβοΈβοΈ \" " , String ( reflecting: newNSUTF16) )
80
80
81
- if #available( SwiftStdlib 6 . 0 , * ) {
81
+ if #available( SwiftStdlib 6 . 1 , * ) {
82
82
expectEqual ( " πββ
ββοΈβοΈβοΈ \n " , printed)
83
+ } else {
84
+ expectEqual ( " \" πββ
ββοΈβοΈβοΈ \" \n " , printed)
83
85
}
84
86
85
87
expectEqual ( printed, debug)
Original file line number Diff line number Diff line change @@ -101,11 +101,16 @@ StringForPrintObjectTests.test("DontBridgeThisStruct") {
101
101
}
102
102
#endif
103
103
104
- if #available( SwiftStdlib 6 . 0 , * ) {
104
+ if #available( SwiftStdlib 6 . 1 , * ) {
105
105
StringForPrintObjectTests . test ( " String " ) {
106
106
let printed = _stringForPrintObject ( " hello \n world " )
107
107
expectEqual ( printed, " hello \n world \n " )
108
108
}
109
+ } else {
110
+ StringForPrintObjectTests . test ( " String " ) {
111
+ let printed = _stringForPrintObject ( " hello \n world " )
112
+ expectEqual ( printed, " \" hello \\ nworld \" \n " )
113
+ }
109
114
}
110
115
111
116
class RefCountedObj {
You canβt perform that action at this time.
0 commit comments