2017-03-19 13:50:32 +01:00
|
|
|
import unittest
|
2017-04-27 18:10:59 +02:00
|
|
|
|
2021-01-31 16:49:12 -05:00
|
|
|
from isogram import (
|
|
|
|
|
is_isogram,
|
|
|
|
|
)
|
2017-03-19 13:50:32 +01:00
|
|
|
|
2020-10-15 12:46:24 -04:00
|
|
|
# Tests adapted from `problem-specifications//canonical-data.json`
|
2017-03-19 13:50:32 +01:00
|
|
|
|
|
|
|
|
|
2019-08-05 13:18:51 -04:00
|
|
|
class IsogramTest(unittest.TestCase):
|
2017-03-19 13:50:32 +01:00
|
|
|
|
2021-05-08 22:56:16 -07:00
|
|
|
# Utility functions
|
|
|
|
|
def assertRaisesWithMessage(self, exception):
|
|
|
|
|
return self.assertRaisesRegex(exception, r".+")
|
2018-09-11 06:47:07 -07:00
|
|
|
|
2017-03-19 13:50:32 +01:00
|
|
|
|
2019-08-05 13:18:51 -04:00
|
|
|
if __name__ == "__main__":
|
2017-03-19 13:50:32 +01:00
|
|
|
unittest.main()
|