tracks/python/exercises/alphametics/alphametics_test.py in trackler-2.2.1.57 vs tracks/python/exercises/alphametics/alphametics_test.py in trackler-2.2.1.58
- old
+ new
@@ -4,45 +4,45 @@
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0
class TestAlphametics(unittest.TestCase):
- def test_puzzle_with_three_letters(self):
+ def test_puzzle_with_03_letters(self):
self.assertEqual(solve("I + BB == ILL"), {"I": 1, "B": 9, "L": 0})
def test_invalid_solution_must_have_unique_value_for_each_letter(self):
self.assertEqual(solve("A == B"), {})
def test_invalid_leading_zero_solution(self):
self.assertEqual(solve("ACA + DD == BD"), {})
- def test_puzzle_with_four_letters(self):
+ def test_puzzle_with_04_letters(self):
self.assertEqual(
solve("AS + A == MOM"), {"A": 9, "S": 2, "M": 1, "O": 0})
- def test_puzzle_with_six_letters(self):
+ def test_puzzle_with_06_letters(self):
self.assertEqual(
solve("NO + NO + TOO == LATE"),
{"N": 7,
"O": 4,
"T": 9,
"L": 1,
"A": 0,
"E": 2})
- def test_puzzle_with_seven_letters(self):
+ def test_puzzle_with_07_letters(self):
self.assertEqual(
solve("HE + SEES + THE == LIGHT"),
{"E": 4,
"G": 2,
"H": 5,
"I": 0,
"L": 1,
"S": 9,
"T": 7})
- def test_puzzle_with_eight_letters(self):
+ def test_puzzle_with_08_letters(self):
self.assertEqual(
solve("SEND + MORE == MONEY"),
{"S": 9,
"E": 5,
"N": 6,
@@ -50,10 +50,10 @@
"M": 1,
"O": 0,
"R": 8,
"Y": 2})
- def test_puzzle_with_ten_letters(self):
+ def test_puzzle_with_10_letters(self):
self.assertEqual(
solve("AND + A + STRONG + OFFENSE + AS + A + GOOD == DEFENSE"),
{"A": 5,
"D": 3,
"E": 4,