Skip to content

Readability#3

Open
Bystroushaak wants to merge 3 commits intoajtowns:masterfrom
Bystroushaak:readability
Open

Readability#3
Bystroushaak wants to merge 3 commits intoajtowns:masterfrom
Bystroushaak:readability

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