Mercurial > hg > expressionparser
diff test.py @ 15:6f0c032b65f5 default tip
add a not token, i hope!
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 03 Jun 2011 13:01:22 -0700 |
parents | facdc089ffbc |
children |
line wrap: on
line diff
--- a/test.py Fri Jun 03 12:42:57 2011 -0700 +++ b/test.py Fri Jun 03 13:01:22 2011 -0700 @@ -38,6 +38,7 @@ self.assertTrue(parse('foo != "bar"', foo='abc')) self.assertTrue(parse("foo != bar", foo=True, bar=False)) self.assertTrue(parse("true != foo", foo=False)) + self.assertTrue(parse("!false")) def test_Conjunctions(self): self.assertTrue(parse("true && true"))