From 8081a9b3d0e31d144d0aa7c4d954c905fa564a7a Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Fri, 4 May 2018 15:36:54 +0100 Subject: Exports unicode.toUpper/toLower in strutils module. --- lib/pure/strutils.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/pure') diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 5de013c26..055e91faf 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -17,6 +17,9 @@ import parseutils from math import pow, round, floor, log10 from algorithm import reverse +from unicode import toLower, toUpper +export toLower, toUpper + {.deadCodeElim: on.} # dce option deprecated {.push debugger:off .} # the user does not want to trace a part -- cgit 1.4.1-2-gfad0 From 03b073d541e899585951fb51896ce4440f94387b Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 5 May 2018 21:14:48 +0100 Subject: Workaround VM bug in strutils --- lib/pure/strutils.nim | 5 +++-- tests/testament/categories.nim | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/pure') diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 055e91faf..ab34a0b2d 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -17,8 +17,9 @@ import parseutils from math import pow, round, floor, log10 from algorithm import reverse -from unicode import toLower, toUpper -export toLower, toUpper +when defined(nimVmExportFixed): + from unicode import toLower, toUpper + export toLower, toUpper {.deadCodeElim: on.} # dce option deprecated diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index f513090a4..9affbc159 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -293,13 +293,13 @@ proc testNimInAction(r: var TResults, cat: Category, options: string) = # Verify that the files have not been modified. Death shall fall upon # whoever edits these hashes without dom96's permission, j/k. But please only # edit when making a conscious breaking change, also please try to make your - # commit message clear so I can easily compile an errata later. + # commit message clear and notify me so I can easily compile an errata later. var testHashes: seq[string] = @[] for test in tests: testHashes.add(getMD5(readFile("tests" / test.addFileExt("nim")).string)) - let refHashes = @[ + const refHashes = @[ "51afdfa84b3ca3d810809d6c4e5037ba", "30f07e4cd5eaec981f67868d4e91cfcf", "d14e7c032de36d219c9548066a97e846", "2e40bfd5daadb268268727da91bb4e81", "c5d3853ed0aba04bf6d35ba28a98dca0", "058603145ff92d46c009006b06e5b228", -- cgit 1.4.1-2-gfad0