Home
last modified time | relevance | path

Searched refs:_checkeval (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Lib/lib2to3/tests/data/
Dpy2_test_grammar.py945 def _checkeval(msg, ret): function
953 self.assertEqual((5 if 1 else _checkeval("check 1", 0)), 5)
954 self.assertEqual((_checkeval("check 2", 0) if 0 else 5), 5)
958 self.assertEqual((0 or _checkeval("check 3", 2) if 0 else 3), 3)
959 self.assertEqual((1 or _checkeval("check 4", 2) if 1 else _checkeval("check 5", 3)), 1)
960 self.assertEqual((0 or 5 if 1 else _checkeval("check 6", 3)), 5)
Dpy3_test_grammar.py929 def _checkeval(msg, ret): function
938 self.assertEqual((5 if 1 else _checkeval("check 1", 0)), 5)
939 self.assertEqual((_checkeval("check 2", 0) if 0 else 5), 5)
943 self.assertEqual((0 or _checkeval("check 3", 2) if 0 else 3), 3)
944 self.assertEqual((1 or _checkeval("check 4", 2) if 1 else _checkeval("check 5", 3)), 1)
945 self.assertEqual((0 or 5 if 1 else _checkeval("check 6", 3)), 5)
/third_party/python/Lib/test/
Dtest_grammar.py1885 def _checkeval(msg, ret): function
1894 self.assertEqual((5 if 1 else _checkeval("check 1", 0)), 5)
1895 self.assertEqual((_checkeval("check 2", 0) if 0 else 5), 5)
1899 self.assertEqual((0 or _checkeval("check 3", 2) if 0 else 3), 3)
1900 self.assertEqual((1 or _checkeval("check 4", 2) if 1 else _checkeval("check 5", 3)), 1)
1901 self.assertEqual((0 or 5 if 1 else _checkeval("check 6", 3)), 5)