Skip to content

Commit e2adff3

Browse files
committed
tests/dict2.py: Add combined test for dict(dict) and dict equality.
1 parent 7cf057a commit e2adff3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/basics/dict2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@
88

99
d['2'] = 222
1010
print(d['1'], d['2'], d['3'])
11+
12+
d2 = dict(d)
13+
print('2' in d2)
14+
print(id(d) != id(d2), d == d2)

0 commit comments

Comments
 (0)