File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ StringForPrintObjectTests.test("StructWithMembers") {
25
25
expectEqual ( printed, " ▿ StructWithMembers \n - a : 1 \n - b : \" Hello World \" \n " )
26
26
}
27
27
28
+ #if _runtime(_ObjC)
28
29
StringForPrintObjectTests . test ( " ClassWithMembers " ) {
29
30
let printed = _DebuggerSupport. stringForPrintObject ( ClassWithMembers ( ) )
30
31
expectTrue ( printed. hasPrefix ( " <ClassWithMembers: 0x " ) )
31
32
}
33
+ #endif
32
34
33
35
StringForPrintObjectTests . test ( " ClassWithMirror " ) {
34
36
let printed = _DebuggerSupport. stringForPrintObject ( ClassWithMirror ( ) )
@@ -47,7 +49,7 @@ StringForPrintObjectTests.test("Dictionary") {
47
49
48
50
StringForPrintObjectTests . test ( " NilOptional " ) {
49
51
let printed = _DebuggerSupport. stringForPrintObject ( nil as Int ? )
50
- expectTrue ( printed. hasPrefix ( " nil " ) )
52
+ expectEqual ( printed, " nil \n " )
51
53
}
52
54
53
55
StringForPrintObjectTests . test ( " SomeOptional " ) {
You can’t perform that action at this time.
0 commit comments