|
|
|
|
@ -3,7 +3,7 @@ from unittest import TestCase
|
|
|
|
|
from gestform import ( |
|
|
|
|
generate_numbers_list, MIN, MAX, |
|
|
|
|
randomise_with_iterator, |
|
|
|
|
gestformation, |
|
|
|
|
gestformation |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -38,42 +38,42 @@ class GestFormTest(TestCase):
|
|
|
|
|
) |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
def test_geste_modulo_3(self): |
|
|
|
|
def test_geste_modulo(self): |
|
|
|
|
gest_numbers = [-999, -333, 3, 9, 18, 1002] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
result = gestformation(i) |
|
|
|
|
self.assertEqual(result, "Geste") |
|
|
|
|
|
|
|
|
|
def test_not_geste_modulo_3(self): |
|
|
|
|
def test_not_geste_modulo(self): |
|
|
|
|
gest_numbers = [-998, -332, 2, 10, 19, 1000] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
result = gestformation(i) |
|
|
|
|
self.assertNotEqual(result, "Geste") |
|
|
|
|
|
|
|
|
|
def test_forme_modulo_5(self): |
|
|
|
|
def test_forme_modulo(self): |
|
|
|
|
gest_numbers = [-5555, -50, 5, 40, 70, 995] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
result = gestformation(i) |
|
|
|
|
self.assertEqual(result, "Forme") |
|
|
|
|
|
|
|
|
|
def test_not_forme_modulo_5(self): |
|
|
|
|
def test_not_forme_modulo(self): |
|
|
|
|
gest_numbers = [-998, -332, 2, 14, 19, 1111] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
result = gestformation(i) |
|
|
|
|
self.assertNotEqual(result, "Forme") |
|
|
|
|
|
|
|
|
|
def test_gestform_modulo_15(self): |
|
|
|
|
def test_gestform_modulo(self): |
|
|
|
|
gest_numbers = [-1500, -60, 15, 105, 900, 1005] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
result = gestformation(i) |
|
|
|
|
self.assertEqual(result, "GestForm") |
|
|
|
|
|
|
|
|
|
def test_not_gestform_modulo_5(self): |
|
|
|
|
def test_not_gestform_modulo(self): |
|
|
|
|
gest_numbers = [-998, -332, 2, 10, 19, 1000] |
|
|
|
|
for i in gest_numbers: |
|
|
|
|
with self.subTest(i): |
|
|
|
|
|