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/repeat_loop.elna | |
| parent | 275fa4bff6d153019b6914fed7127a7d919ca177 (diff) | |
| download | elna-bb4f474cb2247e0e314beab5d7d72e673ff4e8b6.tar.gz | |
Implement a repeat loop
Diffstat (limited to 'testsuite/runnable/repeat_loop.elna')
| -rw-r--r-- | testsuite/runnable/repeat_loop.elna | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/runnable/repeat_loop.elna b/testsuite/runnable/repeat_loop.elna new file mode 100644 index 0000000..5faaeab --- /dev/null +++ b/testsuite/runnable/repeat_loop.elna @@ -0,0 +1,11 @@ +var + actual: [4]Word := [4]Word{} + i: Word := 0u + +begin + repeat + i := i + 1u; + actual[i] := i + until i = 4u; + assert(actual = [4]Word{ 1u, 2u, 3u, 4u }) +end. |
