12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import million.analyze.count_analysis as ca
- from test.TestCase import TestCase
-
-
- class TypoTest(TestCase):
-
- def test_missing_letter_1(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("4976", "45976") == True
-
- def test_missing_letter_2(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("4596", "45976") == True
-
- def test_missing_letter_3(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("5976", "45976") == True
-
- def test_missing_letter_4(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("4597", "45976") == True
-
-
-
- def test_extra_letter_1(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("459766", "45976") == True
-
- def test_extra_letter_2(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("545976", "45976") == True
-
- def test_extra_letter_3(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("452976", "45976") == True
-
- def test_extra_letter_4(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("459776", "45976") == True
-
- def test_extra_letter_5(self, overrides=None, exclude=None):
- assert ca.check_extra_or_missing_letter("45976", "45976") == False
-
-
- def test_single_letter_differ_1(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("35976", "45976") == True
-
- def test_single_letter_differ_2(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("45986", "45976") == True
-
- def test_single_letter_differ_3(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("44986", "45976") == False
-
- def test_single_letter_differ_4(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("35975", "45976") == False
-
- def test_single_letter_differ_5(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("4976", "45976") == False
-
- def test_single_letter_differ_6(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("4597", "45976") == False
-
- def test_single_letter_differ_7(self, overrides=None, exclude=None):
- assert ca.check_single_letter_differ("45976", "45976") == False
-
-
-
- def test_letter_swap_1(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("45976", "45976") == False
-
- def test_letter_swap_2(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("49576", "45976") == True
-
- def test_letter_swap_3(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("45967", "45976") == True
-
- def test_letter_swap_4(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("47956", "45976") == False
-
- def test_letter_swap_5(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("54966", "45976") == False
-
- def test_letter_swap_6(self, overrides=None, exclude=None):
- assert ca.check_letter_swap("54967", "45976") == False
|