diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-12 18:49:11 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-12 18:49:11 +0100 |
| commit | 32fa47b52b03f4ae84bc773bad785cf77334ae78 (patch) | |
| tree | 855cd35f6d6b38e8c955edd0f3385e0b8f2988ac /tests | |
| parent | f957f0ba7bce1c1fb18df37cc11bb3906b96735f (diff) | |
| download | sylt-32fa47b52b03f4ae84bc773bad785cf77334ae78.tar.gz | |
WIP for-loop
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/simple.tdy | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/tests/simple.tdy b/tests/simple.tdy index 3fe05a4..d07aad7 100644 --- a/tests/simple.tdy +++ b/tests/simple.tdy @@ -13,12 +13,28 @@ // print d // print c -a int := 2 -if a == 0 { - print "123" -} else if a == 1 { - print "BCD" -} else { - print "ABC" + +for a := 0, a >= 0, a = a - 1 { + if a == 2 { + continue + } + print a +} + +for a := 0, a >= 0, a = a - 1 { + if a == 2 { + continue + } + print a +} + +a = 0 + +fiv a in something { } + +something.each((x) -> { + +} + // 1, 2, 3, 4 |
