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