summaryrefslogtreecommitdiff
path: root/tests/cmdline/repl_autoindent.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-04-13 17:39:05 +1000
committerDamien George <damien@micropython.org>2022-04-22 17:00:16 +1000
commit6bec5c4da52c323c8e2a7a37aa29584cd726612f (patch)
treebe723bfe90c01be4534c964c39a676f42b757ea0 /tests/cmdline/repl_autoindent.py
parent6d401be4dd0164cb197a05c7419f7b6ef5bbdf51 (diff)
tests/cmdline: Add test for REPL auto-indent.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/cmdline/repl_autoindent.py')
-rw-r--r--tests/cmdline/repl_autoindent.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cmdline/repl_autoindent.py b/tests/cmdline/repl_autoindent.py
new file mode 100644
index 000000000..152c81895
--- /dev/null
+++ b/tests/cmdline/repl_autoindent.py
@@ -0,0 +1,16 @@
+# tests for autoindent
+if 1:
+print(1)
+
+
+
+if 0:
+ print(2)
+else:
+ print(3)
+
+if 0:
+ print(4)
+else:
+ print(5)
+