Skip to content

Commit 511ce06

Browse files
authored
alphametics: mark computationally intensive test as extra-credit (#1358)
* alphametics: mark computationally intensive test as extra-credit While this test is canonical, it does not technically add additional coverage. This test serves as a test for efficiency (exercism/problem-specifications#1024 (comment)) of a solution, not completeness. Furthermore, here are the run-times for this exercise from the [latest Travis build]() (at the time of this writing): | Python Version | Run-time (seconds) | | --- | --- | | 2.7 | 3.155 | | 3.3 | 2.461 | | 3.4 | 3.567 | | 3.5 | 7.270 | | 3.6 | 0.774 | Notice that the optimized example solution is only "fast" in 3.6. * alphametics: add to list of exercises allowed to skip tests in CI
1 parent 7307507 commit 511ce06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exercises/alphametics/alphametics_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_puzzle_with_ten_letters(self):
6666
"S": 6,
6767
"T": 9})
6868

69+
@unittest.skip("extra-credit")
6970
def test_puzzle_with_ten_letters_and_199_addends(self):
7071
self.assertEqual(
7172
solve(

test/check-exercises.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import json
1111

1212
# Allow high-performance tests to be skipped
13-
ALLOW_SKIP = ['largest-series-product']
13+
ALLOW_SKIP = ['alphametics', 'largest-series-product']
1414

1515

1616
def python_executable_name():

0 commit comments

Comments
 (0)