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/nested_collections.py | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lua/tests/indent/python/nested_collections.py (limited to 'lua/tests/indent/python/nested_collections.py') diff --git a/lua/tests/indent/python/nested_collections.py b/lua/tests/indent/python/nested_collections.py new file mode 100644 index 000000000..292a65a00 --- /dev/null +++ b/lua/tests/indent/python/nested_collections.py @@ -0,0 +1,41 @@ +a = [ + 1, + [ + 2, + [ + 3 + ] + ] +] + +b = [ + 1, [[ + 3 + ], + ] +] + +c = [[[ + 3 +]]] + +d = { + 'a': [ + 2, 3 + ], + 'c': ( + [1, 2, 3], + [ + 2, + 4 + ], { + 6, + 8 + } + ) +} + +e = (1, 2, + 3, 4, + 5, 6 + ) -- cgit v1.2.3-70-g09d2