diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-23 01:01:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-23 01:01:03 +0200 |
| commit | 275fa4bff6d153019b6914fed7127a7d919ca177 (patch) | |
| tree | 37f8ef0d49c304fe0fde47ce7d4b3ea32ffce707 /testsuite/runnable/for_by.elna | |
| parent | bd9fe800349dc139cc5841980bcae96e0d18e2db (diff) | |
| download | elna-275fa4bff6d153019b6914fed7127a7d919ca177.tar.gz | |
Implement for loop
Diffstat (limited to 'testsuite/runnable/for_by.elna')
| -rw-r--r-- | testsuite/runnable/for_by.elna | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/runnable/for_by.elna b/testsuite/runnable/for_by.elna new file mode 100644 index 0000000..b219dc6 --- /dev/null +++ b/testsuite/runnable/for_by.elna @@ -0,0 +1,9 @@ +var + actual: [4]Word := [4]Word{} + +begin + for i := 1u to 4u by 2u do + actual[i] := i + end; + assert(actual = [4]Word{ 1u, 0u, 3u, 0u }) +end. |
