Skip to content

Commit cf85364

Browse files
author
Franziska Geiger
committed
Add test cases
1 parent b757f03 commit cf85364

File tree

1 file changed

+16
-3
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+16
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_dict.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,23 @@ def as_utf8_string(self):
486486
return bytes_literal(self.utf8encode(), 'utf8')
487487

488488

489-
def test_wrapped_string_contains():
490-
testString = EncodedString('something')
489+
def test_wrapped_string_contains1():
490+
test_string = EncodedString('something')
491491
dict = {'something': (1, 0), 'nothing': (2, 0)}
492492
reached = False
493-
if testString in dict:
493+
if test_string in dict:
494494
reached = True
495495
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']

0 commit comments

Comments
 (0)