Skip to content

Conversation

@nnrepos
Copy link
Contributor

@nnrepos nnrepos commented Oct 8, 2022

notes:

  • i ignored internal implementation tests
  • also improved PCC01

Difficulty level (1-10): [2]
Estimated time spent (hours): [1]
Completed (yes/no): [yes]
I stretched my coding skills (if yes what did you learn?): [no]
Other feedback (what can we improve?): [i don't think tests should be testing internal implementation. a good test only tests behaviour. that's why i did not create some of the required implementation methods (e.g. _validate).]

ignored internal implementation tests
improved PCC01

def is_legal_word(word: str, drawn_letters_count: Dict[str, int]) -> bool:
word_letters_count = Counter(word.upper())
for letter, count in word_letters_count.items():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could also use any/ all built-ins

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's right, didn't think about it :)

@bbelderbos bbelderbos merged commit e30ba8c into pybites:community Oct 10, 2022
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