@@ -30,19 +30,6 @@ def get_variable(self, name):
30
30
var .SetPreferSyntheticValue (True )
31
31
return var
32
32
33
- # using Ints as keys should practically guarantee that key and index match
34
- # that makes the test case logic much much easier
35
- def check_dictionary_entry (self , var , index , key_summary , value_summary ):
36
- self .assertTrue (var .GetChildAtIndex (index ).IsValid (), "invalid item" )
37
- self .assertTrue (var .GetChildAtIndex (index ).GetChildMemberWithName (
38
- "key" ).IsValid (), "invalid key child" )
39
- self .assertTrue (var .GetChildAtIndex (index ).GetChildMemberWithName (
40
- "value" ).IsValid (), "invalid key child" )
41
- self .assertTrue (var .GetChildAtIndex (index ).GetChildMemberWithName (
42
- "key" ).GetSummary () == key_summary , "invalid key summary" )
43
- self .assertTrue (var .GetChildAtIndex (index ).GetChildMemberWithName (
44
- "value" ).GetSummary () == value_summary , "invalid value summary" )
45
-
46
33
@swiftTest
47
34
def test_swift_generic_enum_types (self ):
48
35
"""Test that we handle reasonably generically-typed enums"""
@@ -55,14 +42,6 @@ def test_swift_generic_enum_types(self):
55
42
self .assertGreater (bkpt2 .GetNumLocations (), 0 , VALID_BREAKPOINT )
56
43
57
44
58
- # This is the function to remove the custom formats in order to have a
59
- # clean slate for the next test case.
60
- def cleanup ():
61
- self .runCmd ("type summary delete main.StringWrapper" , check = False )
62
-
63
- # Execute the cleanup function during test case tear down.
64
- self .addTearDownHook (cleanup )
65
-
66
45
enumvar = self .get_variable ("myOptionalU" ).GetStaticValue ()
67
46
self .assertTrue (enumvar .GetValue () is None ,
68
47
"static type has a value when it shouldn't" )
0 commit comments