Example #1
0
 def test_evaluate_6(self):
     self.assertEqual(
         ((False or
             (True or False)) and
          (False and False)),
         evaluate(
             [[False, "or",
                 [True, "or", False]], "and",
              [False, "and", False]])
     )
Example #2
0
 def test_evaluate_7(self):
     self.assertEqual(
         ((False or True) and
          (False and False) or
          (True and False)),
         evaluate(
             [[False, "or", True], "and",
              [False, "and", False], "or",
              [True, 'and', False]])
     )
Example #3
0
 def test_evaluate_8(self):
     self.assertEqual(
         ((False or True)),
         evaluate(
             [[False, "or", True]])
     )
Example #4
0
 def test_evaluate_3(self):
     self.assertEqual(
         (False and True),
         evaluate([False, "and", True])
     )
Example #5
0
 def test_evaluate_4(self):
     self.assertEqual(
         ((False or True) and True),
         evaluate([[False, "or", True], "and", True])
     )
Example #6
0
 def test_evaluate_8(self):
     self.assertEqual(((False or True)), evaluate([[False, "or", True]]))
Example #7
0
 def test_evaluate_1(self):
     self.assertEqual(
         (False or True),
         evaluate([False, "or", True])
     )
Example #8
0
 def test_evaluate_7(self):
     self.assertEqual(
         ((False or True) and (False and False) or (True and False)),
         evaluate([[False, "or", True], "and", [False, "and", False], "or",
                   [True, 'and', False]]))
Example #9
0
 def test_evaluate_6(self):
     self.assertEqual(((False or (True or False)) and (False and False)),
                      evaluate([[False, "or", [True, "or", False]], "and",
                                [False, "and", False]]))
Example #10
0
 def test_evaluate_4(self):
     self.assertEqual(((False or True) and True),
                      evaluate([[False, "or", True], "and", True]))
Example #11
0
 def test_evaluate_3(self):
     self.assertEqual((False and True), evaluate([False, "and", True]))
Example #12
0
 def test_evaluate_1(self):
     self.assertEqual((False or True), evaluate([False, "or", True]))