Skip to content

Conversation

stevendes
Copy link
Owner

Completed and ready for review!

@stevendes stevendes requested a review from glpuga December 9, 2019 20:29
Copy link
Collaborator

@glpuga glpuga left a comment

Choose a reason for hiding this comment

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

LGTM

self.assertEqual(__, cards['yellow dwarf'])
self.assertEqual(5, len(cards))
self.assertEqual(42, cards['green elf'])
self.assertEqual(42, cards['yellow dwarf'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: line break before end of file.

self.assertEqual(2, len(babel_fish.values()))
self.assertEqual(True, 'one' in babel_fish.keys())
self.assertEqual(False, 'two' in babel_fish.values())
self.assertEqual(False, 'uno' in babel_fish.keys())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q: What type are the return values of values() and keys()?

Copy link
Owner Author

Choose a reason for hiding this comment

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

It returns list for both.

self.assertEqual(__, babel_fish['one'])
self.assertEqual(__, babel_fish['two'])
self.assertEqual('uno', babel_fish['one'])
self.assertEqual('dos', babel_fish['two'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q1: Can None be a valid key?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes, it can.

self.assertEqual(__, babel_fish['one'])
self.assertEqual(__, babel_fish['two'])
self.assertEqual('uno', babel_fish['one'])
self.assertEqual('dos', babel_fish['two'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Q2: Can None be a valid value?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Also can.

self.assertEqual(__, babel_fish['one'])
self.assertEqual(__, babel_fish['two'])
self.assertEqual('uno', babel_fish['one'])
self.assertEqual('dos', babel_fish['two'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

May sound like an Idle question, but None is precisely the return value of any function if you forget to call return on it...

@glpuga glpuga merged commit 2652437 into devel Dec 11, 2019
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