Example #1
0
 def test_cab_dotb(self):
     assert not matches("cab", ".b")
Example #2
0
 def test_aa_adotstara(self):
     assert matches("aa", "a.*a")
Example #3
0
 def test_a_dotstarab(self):
     assert not matches("a", ".*ab")
Example #4
0
 def test_empty_astar(self):
     assert matches("", "a*")
Example #5
0
 def test_a_adotstar(self):
     assert matches("a", "a.*")
Example #6
0
 def test_empty_empty(self):
     assert matches("", "")
Example #7
0
 def test_abc_abstar(self):
     assert not matches("abc", "ab*")
Example #8
0
 def test_a_ab(self):
     assert not matches("a", "ab")
Example #9
0
 def test_a_aa(self):
     assert not matches("a", "aa")
Example #10
0
 def test_blank_a(self):
     assert not matches(" ", "a")
Example #11
0
 def test_a_b(self):
     assert not matches("a", "b")
Example #12
0
 def test_a_a(self):
     assert matches("a", "a")
Example #13
0
 def test_cccabbbbbbc_cstarabstarbbstar(self):
     assert not matches("cccabbbbbbc", "c*ab*bb*")
Example #14
0
 def test_ab_adotstarbb(self):
     assert not matches("ab", "a.*bb")
Example #15
0
 def test_a_astar(self):
     assert matches("a", "a*")
Example #16
0
 def test_a_ba(self):
     assert not matches("a", "ba")
Example #17
0
 def test_ab_astar(self):
     assert not matches("ab", "a*")
Example #18
0
 def test_ab_a(self):
     assert not matches("ab", "a")
Example #19
0
 def test_ab_abstar(self):
     assert matches("ab", "ab*")
Example #20
0
 def test_a_dot(self):
     assert matches("a", ".")
Example #21
0
 def test_abbc_abstarc(self):
     assert matches("abbc", "ab*c")
Example #22
0
 def test_adot_adot(self):
     assert matches("a.", "a.")
Example #23
0
 def test_empty_dotstar(self):
     assert matches("", ".*")
Example #24
0
 def test_acb_adotb(self):
     assert matches("acb", "a.b")
Example #25
0
 def test_a_empty(self):
     assert not matches("a", "")
Example #26
0
 def test_cab_dotab(self):
     assert matches("cab", ".ab")
Example #27
0
 def test_a_dotstaraa(self):
     assert not matches("a", ".*aa")
Example #28
0
 def test_aa_adotstarb(self):
     assert not matches("aa", "a.*b")