Skip to content
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

Merged
merged 8 commits into from
Oct 21, 2017
Merged

Conversation

cmccandless
Copy link
Contributor

@cmccandless cmccandless commented Oct 9, 2017

Resolves #736

TODO:

  • add README
  • update config.json
  • write template solution (zipper.py)
  • write test cases in zipper_test.py
  • write example solution (example.py)

@cmccandless cmccandless changed the title (WIP) implement zipper implement zipper Oct 15, 2017
Copy link
Contributor

@ilya-khadykin ilya-khadykin left a 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

self.parent = None if parent is None else dict(parent)

def value(self):
return self.root['value']
Copy link
Contributor

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


from zipper import Zipper


Copy link
Contributor

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

return Zipper(tree)

def __init__(self, root, parent=None):
self.root = dict(root)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass

@cmccandless
Copy link
Contributor Author

@m-a-ge Requested changes made.

@ilya-khadykin ilya-khadykin merged commit 01708a6 into exercism:master Oct 21, 2017
@ilya-khadykin
Copy link
Contributor

Thanks, @cmccandless 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants