fixes a critical times.nim bug reported on IRC [backport] (#13216)

This commit is contained in:
Andreas Rumpf 2020-01-21 16:49:59 +01:00 • committed by GitHub
commit bdb7c82c6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -717,6 +717,9 @@ when isMainModule:
var tm = fromUnix(0)
discard &"{tm}"
var noww = now()
check &"{noww}", $noww
# Unicode string tests
check &"""{"αβγ"}""", "αβγ"
check &"""{"αβγ":>5}""", " αβγ"