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.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stdlib/t21406.nim b/tests/stdlib/t21406.nim
new file mode 100644
index 000000000..86bf7b0c7
--- /dev/null
+++ b/tests/stdlib/t21406.nim
@@ -0,0 +1,7 @@
+import std/[times, strformat]
+import std/assertions
+
+let aTime = getTime()
+doAssert fmt"{aTime}" == $aTime
+let aNow = now()
+doAssert fmt"{aNow}" == $aNow