Files
python/exercises/practice/alphametics/alphametics_test.py

19 lines
348 B
Python
Raw Normal View History

2017-05-07 14:28:39 +02:00
import unittest
from alphametics import (
solve,
)
2017-05-07 14:28:39 +02:00
2020-10-15 12:46:24 -04:00
# Tests adapted from `problem-specifications//canonical-data.json`
2017-05-07 14:28:39 +02:00
2018-06-13 09:12:09 -04:00
class AlphameticsTest(unittest.TestCase):
2017-05-07 14:28:39 +02:00
# Utility functions
def assertRaisesWithMessage(self, exception):
return self.assertRaisesRegex(exception, r".+")
2017-05-07 14:28:39 +02:00
if __name__ == "__main__":
2017-05-07 14:28:39 +02:00
unittest.main()