X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/80500748a7b4246e2381ddce869a09a215a591ae..0acad54c0243c0bb302e757b962918a73ebe79f4:/tests/data/expression.py diff --git a/tests/data/expression.py b/tests/data/expression.py index 71cf1d9..912f76d 100644 --- a/tests/data/expression.py +++ b/tests/data/expression.py @@ -31,6 +31,7 @@ not great -1 ~int and not v1 ^ 123 + v2 | True (~int) and (not ((v1 ^ (123 + v2)) | True)) ++really ** -confusing ** ~operator ** -precedence flags & ~ select.EPOLLIN and waiters.write_task is not None lambda arg: None lambda a=True: a @@ -169,6 +170,8 @@ mapping = { def gen(): yield from outside_of_generator a = (yield) + b = ((yield)) + c = (((yield))) async def f(): await some.complicated[0].call(with_args=(True or (1 is not 1))) @@ -278,6 +281,7 @@ not great -1 ~int and not v1 ^ 123 + v2 | True (~int) and (not ((v1 ^ (123 + v2)) | True)) ++(really ** -(confusing ** ~(operator ** -precedence))) flags & ~select.EPOLLIN and waiters.write_task is not None lambda arg: None lambda a=True: a @@ -408,7 +412,7 @@ numpy[np.newaxis, :] {"2.7": dead, "3.7": long_live or die_hard} {"2.7", "3.6", "3.7", "3.8", "3.9", "4.0" if gilectomy else "3.10"} [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or A, 11 or B, 12 or C] -(SomeName) +SomeName SomeName (Good, Bad, Ugly) (i for i in (1, 2, 3)) @@ -458,7 +462,9 @@ mapping = { def gen(): yield from outside_of_generator - a = (yield) + a = yield + b = yield + c = yield async def f():