aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/nested_collections.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/python/nested_collections.py')
-rw-r--r--tests/indent/python/nested_collections.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/indent/python/nested_collections.py b/tests/indent/python/nested_collections.py
new file mode 100644
index 000000000..292a65a00
--- /dev/null
+++ b/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
+ )