From 63a88c873f3643aad9208488765dc53618edd40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Thu, 22 Apr 2021 20:53:30 +0200 Subject: move all tests to top-level tests/ directory --- tests/indent/python/comprehensions.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/indent/python/comprehensions.py (limited to 'tests/indent/python/comprehensions.py') diff --git a/tests/indent/python/comprehensions.py b/tests/indent/python/comprehensions.py new file mode 100644 index 00000000..53c3961e --- /dev/null +++ b/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