From 67f2c7149c0de39248f1bdeba1a4303b156c3199 Mon Sep 17 00:00:00 2001 From: Jędrzej Boczar Date: Sat, 13 Mar 2021 22:46:45 +0100 Subject: Initial sketch of automated indent tests --- lua/tests/indent/python/comprehensions.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lua/tests/indent/python/comprehensions.py (limited to 'lua/tests/indent/python/comprehensions.py') diff --git a/lua/tests/indent/python/comprehensions.py b/lua/tests/indent/python/comprehensions.py new file mode 100644 index 000000000..53c3961e1 --- /dev/null +++ b/lua/tests/indent/python/comprehensions.py @@ -0,0 +1,25 @@ +# list +a = [ + x + 1 for x in range(3) +] + +# dict +b = { + x: x + 1 for x in range(3) +} + +# generator +c = ( + x * x for x in range(3) +) + +# set +d = { + x + x for x in range(3) +} + +# other styles +e = [ + x + 1 for x + in range(3) +] -- cgit v1.2.3-70-g09d2