summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/t21406.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdlib/t21406.nim b/tests/stdlib/t21406.nim
new file mode 100644
index 000000000..5b96227ce
--- /dev/null
+++ b/tests/stdlib/t21406.nim
@@ -0,0 +1,5 @@
+import std/[times, strformat]
+import std/assertions
+
+doAssert fmt"{getTime()}" == $getTime()
+doAssert fmt"{now()}" == $now()