summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
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