Commit Graph

17 Commits

Author SHA1 Message Date
Parth Sharma
ec07f8a3ed forth: update tests to v1.7.0 (#1546)
Resolves #1522
2018-10-02 13:47:04 -04:00
omer-g
4dbf550153 forth: Refactor duplicate utility functions (#1516)
Define utility functions in a utility class that inherits
from 'unittest.TestCase'. The test classes inherit from the utility
class.

Reduces line count from 384 to 307. It should also make it easier
for a user to comment out tests without mistakenly breaking
previous tests by commenting out their utility functions.

Resolves #1514
2018-10-01 12:06:18 -04:00
Corey McCandless
5f8f1a1f2b forth: update tests to v1.6.0 (#1426) 2018-07-20 14:33:17 -04:00
Marc Chan
be325ecefa forth: update tests to v1.5.0 (#1336) 2018-02-19 08:41:31 -06:00
Marc Chan
e09fee45c3 forth: Fix #1135, update test to v1.4.0 (#1175)
* forth: Fix #1135, update test to v1.4.0

* forth: improve example to pass test v1.4.0
2018-01-26 08:29:22 -06:00
Corey McCandless
efa763641e fix deprecation warnings (#1161)
* fix deprecation warnings
* use simpler test for assertRaisesRegex existence
2018-01-18 16:47:11 +00:00
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
Nathan Parsons
50d3759c6d forth: Update version strings to reference problem-specifications (#986) 2017-10-25 10:17:29 +03:00
Corey McCandless
5cf1ec25a1 forth: fix import line 2017-10-23 15:14:31 -05: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
7be8cc65be forth: add canonical data version 2017-10-09 09:14:56 -05:00
Corey McCandless
8118a84dca forth: avoid using built-in function as variable name 2017-10-09 09:10:33 -05:00
Corey McCandless
1357d9b244 forth: add example solution 2017-10-06 16:43:57 -05:00
Corey McCandless
d20e749492 forth: write test cases 2017-10-06 15:34:38 -05:00
Corey McCandless
4b9a2d37af forth: add README and add to config.json 2017-10-06 14:54:31 -05:00