diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2019-01-23 11:10:51 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-23 11:10:51 +0100 |
commit | 9c0e5c4c074ac9d4db7b215ba202ad9e09f18254 (patch) | |
tree | 79e7b9b562f01396d4ec0d2b4fc8a0524ad4ae97 /tests/vm/tvmmisc.nim | |
parent | 7fcf51248bb5c37cf49765bac020fa7bc86dea34 (diff) | |
download | Nim-9c0e5c4c074ac9d4db7b215ba202ad9e09f18254.tar.gz |
Harmonize the var/let and const handling (#10410)
Fixes #10333
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r-- | tests/vm/tvmmisc.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index bd3aa2fcd..78871d103 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -149,3 +149,14 @@ static: static: doAssert foo().i == 1 + +# #10333 +block: + const + encoding: auto = [ + ["", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"], + ["", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"], + ["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"], + ["", "M", "MM", "MMM", "--", "-", "--", "---", "----", "--"], + ] + doAssert encoding.len == 4 |