def test_match_empty_string(self): self.assertFalse(match(string='', pattern='absd*.'))
def test_match_any_character_string_dot(self): self.assertTrue(match(string='a', pattern='.'))
def test_match_empty_pattern(self): self.assertFalse(match(string='aasdasd', pattern=''))
def test_match_any_character_string_repeating_times_dot_last(self): self.assertFalse(match(string='mississippi', pattern='mis*is*p*.'))
def test_match_any_character_string_repeating_times(self): self.assertTrue(match(string='aab', pattern='c*a*b'))
def test_match_any_character_string_repeating(self): self.assertTrue(match(string='ab', pattern='.*'))
def test_match_string_repeating(self): self.assertTrue(match(string='aa', pattern='a*')) self.assertTrue(match(string='aaa', pattern='a*')) self.assertTrue(match(string='aaaa', pattern='a*')) self.assertTrue(match(string='a', pattern='a*'))
def test_match_string_aa(self): self.assertFalse(match(string='aa', pattern='a'))