@@ -22,14 +22,18 @@ def test_value_types(self):
22
22
"""Test 'po' on a variety of value types with and without custom descriptions."""
23
23
self .build ()
24
24
(_ ,_ ,_ ,_ ) = lldbutil .run_to_source_breakpoint (self , "Break here to run tests" , lldb .SBFileSpec ("main.swift" ))
25
-
25
+
26
26
self .expect ("po dm" , substrs = ['a' , '12' , 'b' , '24' ])
27
27
self .expect ("po cm" , substrs = ['c' , '36' ])
28
28
self .expect ("po cm" , substrs = ['12' , '24' ], matching = False )
29
29
self .expect ("po cs" , substrs = ['CustomDebugStringConvertible' ])
30
30
self .expect ("po cs" , substrs = ['CustomStringConvertible' ], matching = False )
31
- self .expect ("po cs" , substrs = ['a' , '12' , 'b' , '24' ])
32
- self .expect ("script lldb.frame.FindVariable('cs').GetObjectDescription()" , substrs = ['a' , '12' , 'b' , '24' ])
31
+ self .expect ("po cs" , substrs = ["a" , "12" , "b" , "24" ], matching = False )
32
+ self .expect (
33
+ "script lldb.frame.FindVariable('cs').GetObjectDescription()" ,
34
+ substrs = ["a" , "12" , "b" , "24" ],
35
+ matching = False ,
36
+ )
33
37
self .expect ("po (12,24,36,48)" , substrs = ['12' , '24' , '36' , '48' ])
34
38
self .expect ("po (dm as Any, cm as Any,48 as Any)" , substrs = ['12' , '24' , '36' , '48' ])
35
39
self .expect ("po patatino" , substrs = ['foo' ])
@@ -46,6 +50,3 @@ def test_ignore_bkpts_in_po(self):
46
50
# As part of the po expression we should auto-continue past the breakpoint so this succeeds:
47
51
self .expect ("po cs" , substrs = ['CustomDebugStringConvertible' ])
48
52
self .assertEqual (po_bkpt .GetHitCount (), 1 , "Did hit the breakpoint" )
49
-
50
-
51
-
0 commit comments