Cobra Programming Language
Downloads
Documentation
How To
Samples
Discussion
Wiki
Contact
Wiki
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Back to Ticket #9
Login
Preferences
Help/Guide
About Trac
Ticket #9
: continueBug.cobra
File continueBug.cobra,
344 bytes
(added by hopscc,
17 years
ago)
modified 150-continue test infinite loop
Line
1
namespace
Test
2
3
class
Test
4
5
def
main
6
is
shared
7
8
count
=
0
9
x
=
1
10
for
i
as
int
=
1
..
10
11
x
=
i
12
print
x
13
continue
14
count
+=
1
15
assert
x
==
9
16
assert
count
==
0
17
18
x
=
1
19
for
i
as
int
in
1
:
10
20
x
=
i
21
print
x
22
continue
23
count
+=
1
24
assert
x
==
9
25
assert
count
==
0
26
Download in other formats:
Original Format