summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-01-11 18:05:14 +0100
committerAraq <rumpf_a@web.de>2018-01-11 18:05:14 +0100
commitfb8def869c0a372dd943297a981970adef59bb4d (patch)
tree8ca799bbeabae49c7694bd4146a6728510e65786 /tests
parentdf73d412ba219bc02d76aff89e95f85b33411ffa (diff)
downloadNim-fb8def869c0a372dd943297a981970adef59bb4d.tar.gz
rename strformat.fmt to `%` as it works better with backslash escape sequences; refs #6958
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tfrexp1.nim2
-rw-r--r--tests/stdlib/tstrformat.nim4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/stdlib/tfrexp1.nim b/tests/stdlib/tfrexp1.nim
index c6bb2b38c..caed71250 100644
--- a/tests/stdlib/tfrexp1.nim
+++ b/tests/stdlib/tfrexp1.nim
@@ -22,7 +22,7 @@ proc frexp_test(lo, hi, step: float64) =
     doAssert(abs(rslt - x) < eps)
 
     when manualTest:
-      echo fmt("x: {x:10.3f} exp: {exp:4d} frac: {frac:24.20f} check: {$(abs(rslt - x) < eps):-5s} {rslt: 9.3f}")
+      echo %("x: {x:10.3f} exp: {exp:4d} frac: {frac:24.20f} check: {$(abs(rslt - x) < eps):-5s} {rslt: 9.3f}")
     x += step
 
 when manualTest:
diff --git a/tests/stdlib/tstrformat.nim b/tests/stdlib/tstrformat.nim
index 4e5c614a7..0c56a27f9 100644
--- a/tests/stdlib/tstrformat.nim
+++ b/tests/stdlib/tstrformat.nim
@@ -9,5 +9,5 @@ type Obj = object
 proc `$`(o: Obj): string = "foobar"
 
 var o: Obj
-doAssert fmt"{o}" == "foobar"
-doAssert fmt"{o:10}" == "foobar    "
\ No newline at end of file
+doAssert %"{o}" == "foobar"
+doAssert %"{o:10}" == "foobar    "
\ No newline at end of file