Procházet zdrojové kódy

fix https://github.com/pocketpy/pocketpy/issues/394

blueloveTH před 2 měsíci
rodič
revize
8ff3f44179
1 změnil soubory, kde provedl 19 přidání a 0 odebrání
  1. 19 0
      tests/040_line_continue.py

+ 19 - 0
tests/040_line_continue.py

@@ -45,3 +45,22 @@ income = (gross_wages
           - ira_deduction
           - student_loan_interest)
 '''.strip(), 'main.py', 'exec')
+
+res = []
+class Thing:
+	def do_a(self):
+		res.append("A")
+		return self
+	def do_b(self):
+		res.append("B")
+		return self
+	def do_c(self):
+		res.append("C")
+		return self
+		
+(Thing()
+	.do_a()
+	.do_b()
+	.do_c())
+
+assert res == ["A", "B", "C"]