-
Notifications
You must be signed in to change notification settings - Fork 96
Adding iterator method to Dict #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
93a9f40
abedc25
30a14d7
f85056c
7d9728d
6b49912
3604157
a39291e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,8 @@ | |
a = repr({"a":"b","c":5.5}) | ||
assert a == "{'a': 'b', 'c': 5.5}" or a == "{'c': 5.5, 'a': 'b'}" | ||
|
||
doc="check __iter__" | ||
a = {"a":"b","c":5.5} | ||
assert "a" in a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Strictly speaking this test will no longer work when we implement the Do can you change it to something like l = list(iter(a))
assert "a" in l
assert "c" in l
assert len(l) == 2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be fixed now |
||
|
||
doc="finished" |
Uh oh!
There was an error while loading. Please reload this page.