kopia lustrzana https://github.com/micropython/micropython-lib
collections.defaultdict: Fix test.
rodzic
631ba9a419
commit
08e62ebfc0
|
@ -1,6 +1,6 @@
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
d = defaultdict(lambda:42)
|
d = defaultdict.defaultdict(lambda:42)
|
||||||
assert d[1] == 42
|
assert d[1] == 42
|
||||||
d[2] = 3
|
d[2] = 3
|
||||||
assert d[2] == 3
|
assert d[2] == 3
|
||||||
|
|
Ładowanie…
Reference in New Issue