Priority of `not` raised. It's now possible to write `not foo in bar`
as an alias to `foo not in bar` like in python. Previously the grammar
required parentheses (`not (foo in bar)`) which was odd.
--HG--
branch : trunk
diff --git a/tests/test_syntax.py b/tests/test_syntax.py
index 8d14c66..2a8e46f 100644
--- a/tests/test_syntax.py
+++ b/tests/test_syntax.py
@@ -189,3 +189,9 @@
def test_string_concatenation(env):
tmpl = env.from_string('{{ "foo" "bar" "baz" }}')
assert tmpl.render() == 'foobarbaz'
+
+
+def test_notin(env):
+ bar = xrange(100)
+ tmpl = env.from_string('''{{ not 42 in bar }}''')
+ assert tmpl.render(bar=bar) == unicode(not 42 in bar)