diff options
author | Araq <rumpf_a@web.de> | 2018-12-10 15:50:38 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-11 21:23:25 +0100 |
commit | 34815a469735ef15390b034d4a806c7e69ac49e7 (patch) | |
tree | 3492bb27b86449e2279158d9d89504a52a6a5020 /tests/magics | |
parent | 916955dc9552456a365ad612d25ec775a5bc0d06 (diff) | |
download | Nim-34815a469735ef15390b034d4a806c7e69ac49e7.tar.gz |
megatest: make it green on Linux
Diffstat (limited to 'tests/magics')
-rw-r--r-- | tests/magics/tmagics.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/magics/tmagics.nim b/tests/magics/tmagics.nim index 841de56a5..fa138320c 100644 --- a/tests/magics/tmagics.nim +++ b/tests/magics/tmagics.nim @@ -8,20 +8,21 @@ true false true ''' +joinable: false """ block tlowhigh: type myEnum = enum e1, e2, e3, e4, e5 var a: array[myEnum, int] - + for i in low(a) .. high(a): a[i] = 0 - + proc sum(a: openarray[int]): int = result = 0 for i in low(a)..high(a): inc(result, a[i]) - + doAssert sum([1, 2, 3, 4]) == 10 |