def test_case11(self):
     code = '^le|apple'
     exp = Regexp(code)
     self.assertFalse(exp.result)
 def test_case1(self):
     code = '^app|apple'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case8(self):
     code = '^apple$|tasty apple'
     exp = Regexp(code)
     self.assertFalse(exp.result)
 def test_case9(self):
     code = '^apple$|apple pie'
     exp = Regexp(code)
     self.assertFalse(exp.result)
 def test_case5(self):
     code = 'apple$|tasty apple'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case6(self):  #repetido
     code = 'apple$|tasty apple'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case14(self):
     code = '.*|aaa'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case2(self):
     code = 'le$|apple'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case13(self):
     code = 'colou+r|color'
     exp = Regexp(code)
     self.assertFalse(exp.result)
 def test_case12(self):
     code = 'a|a'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case11(self):
     code = 'col.*r$|colors'
     exp = Regexp(code)
     self.assertFalse(exp.result)
 def test_case10(self):
     code = 'col.*r|collar'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case6(self):
     code = 'colou*r|colouur'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case1(self):
     code = 'colou?r|color'
     exp = Regexp(code)
     self.assertTrue(exp.result)
 def test_case17(self):
     code = 'no+$|noooooooope'
     exp = Regexp(code)
     self.assertFalse(exp.result)