All incomplete examples have been updated and some corrections have been made to the parser to make them work. (0.37.17)
This commit is contained in:
parent
37c5ae6f58
commit
92aacff71a
41 changed files with 654 additions and 130 deletions
|
|
@ -8,7 +8,7 @@
|
|||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*/
|
||||
|
||||
|
||||
// While loops feature test: simple loops, nested with if/else, and functions
|
||||
|
||||
print("=== while test start ===")
|
||||
|
|
@ -42,3 +42,21 @@ fun countdown(n)
|
|||
print(countdown(3)) // expect: 3,2,1 then 0
|
||||
|
||||
print("=== while test end ===")
|
||||
|
||||
/* Expected output:
|
||||
=== while test start ===
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
3
|
||||
99
|
||||
1
|
||||
3
|
||||
2
|
||||
1
|
||||
0
|
||||
=== while test end ===
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue