Merge pull request #13 from ativelkov/version-0.3

Simplified the wrong precedence example in tests
This commit is contained in:
Alexander Tivelkov 2014-08-27 16:25:06 +04:00
commit d2be057b10

View File

@ -47,8 +47,8 @@ class TestBooleans(YaqlTest):
@unittest.skip(
"Custom precedence for 'or' and 'and' operators is not defined")
def test_incorrect_boolean_precedence(self):
self.assertEval(True, "false or true or (true and false)") # works
self.assertEval(True, "false or true or true and false") # breaks
self.assertEval(True, "true or (true and false)") # works
self.assertEval(True, "true or true and false") # breaks
def test_boolean_conversion(self):
self.assertNotEquals(types.BooleanType, type(self.eval('abcd')))