comparison test.py @ 14:facdc089ffbc

add an additional parentheses test
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 03 Jun 2011 12:42:57 -0700
parents ec0e83ec329f
children 6f0c032b65f5
comparison
equal deleted inserted replaced
13:ec0e83ec329f 14:facdc089ffbc
58 self.assertTrue(parse("(true && true || false)")) 58 self.assertTrue(parse("(true && true || false)"))
59 self.assertFalse(parse("(true || false) && false")) 59 self.assertFalse(parse("(true || false) && false"))
60 self.assertTrue(parse("(true || false) && true")) 60 self.assertTrue(parse("(true || false) && true"))
61 self.assertTrue(parse("true && (true || false)")) 61 self.assertTrue(parse("true && (true || false)"))
62 self.assertTrue(parse("true && (true || false)")) 62 self.assertTrue(parse("true && (true || false)"))
63 self.assertTrue(parse("(true && false) || (true && (true || false))"))
63 64
64 if __name__ == '__main__': 65 if __name__ == '__main__':
65 unittest.main() 66 unittest.main()