aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/goto.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-06-29 10:58:56 +0800
committerLi Jin <dragon-fly@qq.com>2023-06-29 10:58:56 +0800
commitc98c6053635ddfca7aab15b268b0f2c1fcc0c6ef (patch)
treedcacf24e010346eb03e834d8081eb81e26f5c7ff /spec/inputs/goto.yue
parent51faef5288a64a84b8f8e5cea8631c7518b94411 (diff)
downloadyuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.gz
yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.tar.bz2
yuescript-c98c6053635ddfca7aab15b268b0f2c1fcc0c6ef.zip
fix issue #139.
Diffstat (limited to 'spec/inputs/goto.yue')
-rw-r--r--spec/inputs/goto.yue8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/goto.yue b/spec/inputs/goto.yue
index 61584ca..3f3ae89 100644
--- a/spec/inputs/goto.yue
+++ b/spec/inputs/goto.yue
@@ -16,10 +16,10 @@ do
16do 16do
17 for z = 1, 10 17 for z = 1, 10
18 for y = 1, 10 do for x = 1, 10 18 for y = 1, 10 do for x = 1, 10
19 if x^2 + y^2 == z^2 19 if x^2 + y^2 == z^2
20 print 'found a Pythagorean triple:', x, y, z 20 print 'found a Pythagorean triple:', x, y, z
21 print 'now trying next z...' 21 print 'now trying next z...'
22 goto zcontinue 22 goto zcontinue
23 ::zcontinue:: 23 ::zcontinue::
24 24
25do 25do