summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-11-05 11:05:46 +0100
committerMiran <narimiran@disroot.org>2019-11-05 11:05:46 +0100
commit3ba3307d61319984e3e8b1061f38402d53cf8f60 (patch)
treed01213de137a5f3216b5c8cf4cacb16c06c686e6 /tests/destructor
parentffa9a7405fe55f91d3816d3cf4b3b1b82ede21ff (diff)
downloadNim-3ba3307d61319984e3e8b1061f38402d53cf8f60.tar.gz
remove deprecated procs (#12535)
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tnewruntime_strutils.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/destructor/tnewruntime_strutils.nim b/tests/destructor/tnewruntime_strutils.nim
index dd190a1b6..54ce4acea 100644
--- a/tests/destructor/tnewruntime_strutils.nim
+++ b/tests/destructor/tnewruntime_strutils.nim
@@ -1,9 +1,9 @@
 discard """
   cmd: '''nim c --newruntime $file'''
-  output: '''443 443'''
+  output: '''422 422'''
 """
 
-import strutils, os
+import strutils, os, std / wordwrap
 
 import core / allocators
 import system / ansi_c
@@ -76,12 +76,12 @@ proc staticTests =
     inp = """ this is a long text --  muchlongerthan10chars and here
                 it goes"""
     outp = " this is a\nlong text\n--\nmuchlongerthan10chars\nand here\nit goes"
-  doAssert wordWrap(inp, 10, false) == outp
+  doAssert wrapWords(inp, 10, false) == outp
 
   let
     longInp = """ThisIsOneVeryLongStringWhichWeWillSplitIntoEightSeparatePartsNow"""
     longOutp = "ThisIsOn\neVeryLon\ngStringW\nhichWeWi\nllSplitI\nntoEight\nSeparate\nPartsNow"
-  doAssert wordWrap(longInp, 8, true) == longOutp
+  doAssert wrapWords(longInp, 8, true) == longOutp
 
   doAssert "$animal eats $food." % ["animal", "The cat", "food", "fish"] ==
             "The cat eats fish."