Add test case

This commit is contained in:
Oscar Nihlgård
2018-01-09 00:33:39 +01:00
parent cde3a4f586
commit 624bd847fb

View File

@@ -0,0 +1,13 @@
discard """
action: "run"
"""
import strformat
type Obj = object
proc `$`(o: Obj): string = "foobar"
var o: Obj
doAssert fmt"{o}" == "foobar"
doAssert fmt"{o:10}" == "foobar "