-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
word-search: Update tests to version 1.1.0(#1012) #1053
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wilson8507 I've left some comments, please address them.
@@ -36,48 +137,179 @@ def test_vertical_words_top_to_bottom(self): | |||
self.example.search('ecmascript'), | |||
(Point(9, 0), Point(9, 9)) | |||
) | |||
self.assertEqual( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a lot of redundant and misplaced assertions. Please check that each assertion actually belongs under its test method (Example: checks for "clojure" in self.example
should only appear in tests for horizontal words).
- Delete assertions that appearing in multiple test methods - Make sure each test case appearing in correct test methods
…thon into update/word-search
@cmccandless I've fixed it, please check if there is any problem. Thanks! |
@@ -2,9 +2,112 @@ | |||
|
|||
from word_search import WordSearch, Point | |||
|
|||
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor formatting point, but can you move the version comment down a line (ie. two blank lines before, one after).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a comment regarding a minor formatting issue. Once you've resolved it, I'm happy merge this.
Thanks for the hard work, @wilson8507!
- Move the version comment down a line
…thon into update/word-search
@N-Parsons I've resolved it. Thank you for pointing out my carelessness! |
Perfect! Thanks, @wilson8507! I'm a bit picky about formatting and consistency 😛 |
) * word-search: Update tests to version 1.1.0(exercism#1012) * Remove redundant and misplaced assertions
resolve issue #1012