From 3ba3307d61319984e3e8b1061f38402d53cf8f60 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 5 Nov 2019 11:05:46 +0100 Subject: remove deprecated procs (#12535) --- tests/destructor/tnewruntime_strutils.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/destructor') 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." -- cgit 1.4.1-2-gfad0