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/control_flow.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/tests/indent/python/control_flow.py (limited to 'lua/tests/indent/python/control_flow.py') diff --git a/lua/tests/indent/python/control_flow.py b/lua/tests/indent/python/control_flow.py new file mode 100644 index 000000000..543decc71 --- /dev/null +++ b/lua/tests/indent/python/control_flow.py @@ -0,0 +1,24 @@ +a, b, c, = 1, 2, 3 + +if a == a: + x = 1 +elif b: + x = 2 +else: + x = 3 + +while False: + pass + +for _ in range(3): + pass + +with open('/tmp/f', 'w') as f: + pass + +try: + pass +except: + pass +finally: + pass -- cgit v1.2.3-70-g09d2