def testFalse(self): self.assertFalse(program.calcula('false'))
def testTrueOrTrueAndFalse(self): self.assertFalse(program.calcula('true or true and false'))
def testTrueOrTrueXorFalse(self): self.assertTrue(program.calcula('true or true xor false'))
def testTrue(self): self.assertTrue(program.calcula('true'))
def testTrueAndTrueOrFalse(self): self.assertTrue(program.calcula('true and true or false'))
def testTrueOrFalse(self): self.assertTrue(program.calcula('true or false')) self.assertTrue(program.calcula('false or true'))
def testTrueXorFalse(self): self.assertTrue(program.calcula('false xor true'))
def testTrueAndTrueAndTrue(self): self.assertTrue(program.calcula('true and true and true'))
def testTrueAndFalseOrFalse(self): self.assertFalse(program.calcula('true and false or false'))
def testTrueOrTrue(self): self.assertTrue(program.calcula('true or true'))
def testFalseOrFalse(self): self.assertFalse(program.calcula('false or false'))
def testFalseAndFalse(self): self.assertFalse(program.calcula('false and false'))