-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
implement zipper #783
implement zipper #783
Conversation
e89ed84
to
deb6fea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cmccandless
Please read my comments
exercises/zipper/zipper.py
Outdated
self.parent = None if parent is None else dict(parent) | ||
|
||
def value(self): | ||
return self.root['value'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should pass
here I guess
exercises/zipper/zipper_test.py
Outdated
|
||
from zipper import Zipper | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please also leave a comment stating what version of canonical-data.json
the tests were adopted as discussed in #784 if aplicable?
The format is:
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0
exercises/zipper/zipper.py
Outdated
return Zipper(tree) | ||
|
||
def __init__(self, root, parent=None): | ||
self.root = dict(root) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass
@m-a-ge Requested changes made. |
Thanks, @cmccandless 👍 |
Resolves #736
TODO:
config.json
zipper.py
)zipper_test.py
example.py
)