From d40872bf9b5ec6b481afabd1aed284cc8bc3d4c7 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Wed, 17 Jul 2019 13:48:15 -0400 Subject: [PATCH] [bugfix] Make std/unicode compile with --styleCheck:error (#11763) --- lib/pure/unicode.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim index bbd3787400..35c3642218 100644 --- a/lib/pure/unicode.nim +++ b/lib/pure/unicode.nim @@ -1281,7 +1281,7 @@ when isMainModule: compared = (someString == $someRunes) doAssert compared == true - proc test_replacements(word: string): string = + proc testReplacements(word: string): string = case word of "two": return "2" @@ -1294,8 +1294,8 @@ when isMainModule: else: return "12345" - doAssert translate("two not alpha foo βeta", test_replacements) == "2 12345 αlpha BAR beta" - doAssert translate(" two not foo βeta ", test_replacements) == " 2 12345 BAR beta " + doAssert translate("two not alpha foo βeta", testReplacements) == "2 12345 αlpha BAR beta" + doAssert translate(" two not foo βeta ", testReplacements) == " 2 12345 BAR beta " doAssert title("foo bar") == "Foo Bar" doAssert title("αlpha βeta γamma") == "Αlpha Βeta Γamma"