File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
graalpython/com.oracle.graal.python.test/src/tests Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -486,10 +486,23 @@ def as_utf8_string(self):
486
486
return bytes_literal (self .utf8encode (), 'utf8' )
487
487
488
488
489
- def test_wrapped_string_contains ():
490
- testString = EncodedString ('something' )
489
+ def test_wrapped_string_contains1 ():
490
+ test_string = EncodedString ('something' )
491
491
dict = {'something' : (1 , 0 ), 'nothing' : (2 , 0 )}
492
492
reached = False
493
- if testString in dict :
493
+ if test_string in dict :
494
494
reached = True
495
495
assert reached
496
+
497
+ def test_wrapped_string_contains2 ():
498
+ test_string = EncodedString ('something' )
499
+ dict = {'something' , 'nothing' }
500
+ reached = False
501
+ if test_string in dict :
502
+ reached = True
503
+ assert reached
504
+
505
+ def test_wrapped_string_get ():
506
+ a = 'test'
507
+ dict = locals ()
508
+ assert dict ['a' ]
You can’t perform that action at this time.
0 commit comments