File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,11 @@ def testSimpleTypePromotionIntToDouble(self):
227
227
self .assertTrue (False ,"the promotion of string to double should fail" )
228
228
except :
229
229
pass
230
+ try :
231
+ should_fail = object .TestSimpleIntToDoubleTypePromotion (2 ,True )
232
+ self .assertTrue (False ,"the promotion of boolean to double should fail" )
233
+ except :
234
+ pass
230
235
231
236
def testSimpleTypePromotionIntToFloat (self ):
232
237
object = MethodTest ()
@@ -242,10 +247,15 @@ def testSimpleTypePromotionIntToFloat(self):
242
247
except :
243
248
self .assertTrue (False ,"Type promotion from int to float failed" )
244
249
try :
245
- should_fail = object .TestSimpleIntToDoubleTypePromotion (2 ,'2.0' )
250
+ should_fail = object .TestSimpleIntToFloatTypePromotion (2 ,'2.0' )
246
251
self .assertTrue (False ,"the promotion of string to float should fail" )
247
252
except :
248
253
pass
254
+ try :
255
+ should_fail = object .TestSimpleIntToFloatTypePromotion (2 ,True )
256
+ self .assertTrue (False ,"the promotion of boolean to float should fail" )
257
+ except :
258
+ pass
249
259
250
260
def testMethodCallStructConversion (self ):
251
261
"""Test struct conversion in method call."""
You can’t perform that action at this time.
0 commit comments