Commit Graph

9 Commits

Author SHA1 Message Date
Nathan Parsons
f53e2ef08b Implement checks for raising messages with exceptions (#1113)
* Implement checks for messages being raised with exceptions
(Fixes #1080)

* Add self.assertRaisesWithMessage method to relevant exercise tests
    - Uses self.assertRaisesRegex
    - Checks only for the presence of a message, not content
* Add meaningful messages to failing examples
* octal: Switch to using a context manager for exception tests

* Add note regarding error messages to the insert

* simple-linked-list: Move hints.md to correct location

* simple-cipher: Remove extra whitespace from lines

* collatz-conjecture: Update hints.md

* Regenerate README to include exceptions section
2017-12-12 12:11:43 -06:00
Nathan Parsons
c26ce50112 forth: Fix errors in tests (#1063)
* forth: Fix errors in tests
* forth: Add empty line test
* forth: Update example to work with new tests
2017-10-27 16:46:37 +01:00
Corey McCandless
c04d723182 forth: rename UnderflowError to StackUnderflowError 2017-10-09 14:23:21 -05:00
Corey McCandless
f87af30651 forth: replace "return None" with appropriate exceptions 2017-10-09 11:27:43 -05:00
Corey McCandless
8118a84dca forth: avoid using built-in function as variable name 2017-10-09 09:10:33 -05:00
Corey McCandless
76b10475b0 forth: fixes for Flake8 compliance in Python 2.7 2017-10-06 16:53:11 -05:00
Corey McCandless
1357d9b244 forth: add example solution 2017-10-06 16:43:57 -05:00
Corey McCandless
0725c1d5cf forth: fixes for Flake8 compliancy 2017-10-06 15:38:37 -05:00
Corey McCandless
4b9a2d37af forth: add README and add to config.json 2017-10-06 14:54:31 -05:00