From 9c0e5c4c074ac9d4db7b215ba202ad9e09f18254 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 23 Jan 2019 11:10:51 +0100 Subject: Harmonize the var/let and const handling (#10410) Fixes #10333 --- tests/vm/tvmmisc.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/vm/tvmmisc.nim') 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 -- cgit 1.4.1-2-gfad0 type='submit' value='switch'/> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/tests/misc/minit.nim
blob: 513f46af550a2197e5a916f1b4c93d02f8c70aba (plain) (tree)
1
2