| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import math # noqa |
||
| 2 | import re # noqa |
||
| 3 | import unittest |
||
| 4 | |||
| 5 | from solution_for_anything import checkio # noqa |
||
| 6 | |||
| 7 | |||
| 8 | class Tests(unittest.TestCase): |
||
| 9 | TESTS = { |
||
| 10 | "1. Basics": [ |
||
| 11 | {"input": "checkio({1, 2, 3}) == {1, 2, 3}"}, |
||
| 12 | {"input": "checkio({}) != []"}, |
||
| 13 | {"input": "checkio('Hello') < 'World'"}, |
||
| 14 | {"input": "checkio(80) > 81"}, |
||
| 15 | {"input": "checkio(re) >= re"}, |
||
| 16 | {"input": "checkio(re) <= math"}, |
||
| 17 | {"input": "checkio(5) == ord"}, |
||
| 18 | ] |
||
| 19 | } |
||
| 20 | |||
| 21 | def test_Basics(self): |
||
| 22 | for i in self.TESTS['1. Basics']: |
||
| 23 | assert eval(i['input']), i['input'] |
||
| 24 | |||
| 25 | |||
| 26 | if __name__ == "__main__": # pragma: no cover |
||
| 27 | unittest.main() |
||
| 28 |