summary refs log tree commit diff stats
path: root/tests/stdlib/t21406.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/t21406.nim')
-rw-r--r--tests/stdlib/t21406.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/stdlib/t21406.nim b/tests/stdlib/t21406.nim
index 5b96227ce..86bf7b0c7 100644
--- a/tests/stdlib/t21406.nim
+++ b/tests/stdlib/t21406.nim
@@ -1,5 +1,7 @@
 import std/[times, strformat]
 import std/assertions
 
-doAssert fmt"{getTime()}" == $getTime()
-doAssert fmt"{now()}" == $now()
+let aTime = getTime()
+doAssert fmt"{aTime}" == $aTime
+let aNow = now()
+doAssert fmt"{aNow}" == $aNow