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

Readability #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Bystroushaak
Copy link

Hi.

I added tests and reformated code a little to improve readability, using PEP8. Also fixed corner case for python2 with Iterable import from collections.

@Bystroushaak
Copy link
Author

Fixed the merge conflicts.

@Visgean
Copy link

Visgean commented May 21, 2015

In the tests you have a typo, 'fist' should be 'first'...

@Bystroushaak
Copy link
Author

Yeah.

def test_repr():
assert repr(odict()) == "odict()"
assert repr(odict["key": "val"]) == 'odict[key: val]'
assert repr(odict["k": "v", "x": "y"]) == 'odict[k: v, x: y]'

Choose a reason for hiding this comment

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

This test is wrong, the output should include quotes

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.

3 participants