File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
lldb/test/API/lang/swift/variables/inout Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,19 @@ def check_class_internal(
72
72
73
73
ivar = x_actual .GetChildAtIndex (0 ).GetChildAtIndex (0 )
74
74
ovar = x_actual .GetChildAtIndex (1 )
75
- self .assertTrue (
76
- ivar .GetName () == "ivar" , "Name: %s is not ivar %s" %
75
+ self .assertEquals (
76
+ ivar .GetName (), "ivar" , "Name: %s is not ivar %s" %
77
77
(ivar .GetName (), message_end ))
78
- self .assertTrue (
79
- ovar .GetName () == "ovar" ,
78
+ self .assertEquals (
79
+ ovar .GetName (), "ovar" ,
80
80
"ovar is not ovar %s" %
81
81
(message_end ))
82
- self .assertTrue (
83
- ivar .GetValue () == ivar_value ,
82
+ self .assertEquals (
83
+ ivar .GetValue (), ivar_value ,
84
84
"ivar wrong %s" %
85
85
(message_end ))
86
- self .assertTrue (
87
- ovar .GetValue () == ovar_value ,
86
+ self .assertEquals (
87
+ ovar .GetValue (), ovar_value ,
88
88
"ovar wrong %s" %
89
89
(message_end ))
90
90
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ struct Struct {
39
39
}
40
40
41
41
func foo ( _ x: inout Class ) {
42
- print ( x. ivar)
43
- x. ivar += 1 // Set breakpoint here for Class access
42
+ print ( x. ivar) // Set breakpoint here for Class access
43
+ x. ivar += 1
44
44
}
45
45
46
46
func foo( _ x: inout Struct ) {
47
- print ( x. ivar)
48
- x. ivar += 1 // Set breakpoint here for Struct access
47
+ print ( x. ivar) // Set breakpoint here for Struct access
48
+ x. ivar += 1
49
49
}
50
50
51
51
func fn_ptrs ( _ str: Struct ) {
You can’t perform that action at this time.
0 commit comments