summary refs log tree commit diff stats
path: root/tests/vm/tvmmisc.nim
diff options
context:
space:
mode:
authordeansher <deansherthompson@gmail.com>2019-01-28 08:12:24 -0500
committerdeansher <deansherthompson@gmail.com>2019-01-28 08:12:24 -0500
commitd60f8ab99181ea18cc534728ba4d0470c0ca1bce (patch)
tree64cef5bc336a6d0038dcb47a4e3b1cd30ed434d7 /tests/vm/tvmmisc.nim
parenta6de0274ee768d135bab280d2b2700a0bb475300 (diff)
parent9402c82e803d133e0b845a7c5c79c261781e7d8d (diff)
downloadNim-d60f8ab99181ea18cc534728ba4d0470c0ca1bce.tar.gz
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r--tests/vm/tvmmisc.nim11
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