-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
constructor level type checks + tests (#303)
Summary: <!-- Thank you for your interest in this project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct of this project which can be found at https://github.com/facebookincubator/TestSlide/blob/master/CODE_OF_CONDUCT.md Also, please make sure you're familiar with and follow the instructions in the contributing guidelines which can be found at https://github.com/facebookincubator/TestSlide/blob/master/CONTRIBUTING.md --> **What:** Fix for issue #233 1. Added Constructor level input type checks for various Matchers. **Why:** **How:** _For point 1_ Checked for the passed arguments to be of the specified types. If not, raised a `ValueError` with appropriate error message. **Risks:** N/A. At least not intentionally. **Checklist**: <!-- Have you done all of these things? To check an item, place an "x" in the box like so: "- [x] Tests" Add "N/A" to the end of each line that's irrelevant to your changes --> - [x] Added tests, if you've added code that should be tested - [x] Updated the documentation, if you've changed APIs - [x] Ensured the test suite passes - [x] Made sure your code lints - [x] Completed the Contributor License Agreement ("CLA") Pull Request resolved: #303 Reviewed By: doranand Differential Revision: D28693338 Pulled By: deathowl fbshipit-source-id: 91cbba5951e5e7a7ed65515756587be2bbf78f54
- Loading branch information
1 parent
b70d59b
commit aa4a514
Showing
2 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters