1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 2c20730

A potential way to implement better "x in constant-tuple"?

  • Participants
  • Parent commits 71f5a25
  • Branches default

Comments (0)

Files changed (1)

File rpython/jit/metainterp/test/test_ajit.py

View file
  • Ignore whitespace
             return a.x
         res = self.interp_operations(f, [42])
         assert res == 0
+
+    def test_conditions_without_guards(self):
+        def f(n):
+            if (n == 1) | (n == 3) | (n == 17):
+                return 42
+            return 5
+        res = self.interp_operations(f, [17])
+        assert res == 42