@@ -22,14 +22,18 @@ def test_value_types(self):
2222 """Test 'po' on a variety of value types with and without custom descriptions."""
2323 self .build ()
2424 (_ ,_ ,_ ,_ ) = lldbutil .run_to_source_breakpoint (self , "Break here to run tests" , lldb .SBFileSpec ("main.swift" ))
25-
25+
2626 self .expect ("po dm" , substrs = ['a' , '12' , 'b' , '24' ])
2727 self .expect ("po cm" , substrs = ['c' , '36' ])
2828 self .expect ("po cm" , substrs = ['12' , '24' ], matching = False )
2929 self .expect ("po cs" , substrs = ['CustomDebugStringConvertible' ])
3030 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+ )
3337 self .expect ("po (12,24,36,48)" , substrs = ['12' , '24' , '36' , '48' ])
3438 self .expect ("po (dm as Any, cm as Any,48 as Any)" , substrs = ['12' , '24' , '36' , '48' ])
3539 self .expect ("po patatino" , substrs = ['foo' ])
@@ -46,6 +50,3 @@ def test_ignore_bkpts_in_po(self):
4650 # As part of the po expression we should auto-continue past the breakpoint so this succeeds:
4751 self .expect ("po cs" , substrs = ['CustomDebugStringConvertible' ])
4852 self .assertEqual (po_bkpt .GetHitCount (), 1 , "Did hit the breakpoint" )
49-
50-
51-
0 commit comments