diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-24 03:11:32 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-24 03:11:32 +0200 |
| commit | bb4f474cb2247e0e314beab5d7d72e673ff4e8b6 (patch) | |
| tree | 4809b414bffa8d422ef8c1b6fe65dcdd4dce65d8 /testsuite/runnable/for_with.elna | |
| parent | 275fa4bff6d153019b6914fed7127a7d919ca177 (diff) | |
| download | elna-bb4f474cb2247e0e314beab5d7d72e673ff4e8b6.tar.gz | |
Implement a repeat loop
Diffstat (limited to 'testsuite/runnable/for_with.elna')
| -rw-r--r-- | testsuite/runnable/for_with.elna | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/runnable/for_with.elna b/testsuite/runnable/for_with.elna new file mode 100644 index 0000000..cfec5c0 --- /dev/null +++ b/testsuite/runnable/for_with.elna @@ -0,0 +1,9 @@ +var + actual: [3]Word := [3]Word{} + +begin + for element of [3]Word{ 1u, 2u, 3u } with i do + actual[i] := i * element^ + end; + assert(actual = [3]Word{ 1u, 4u, 9u }) +end. |
