simplify typetraits.nim test (#8193)
This commit is contained in:
parent
681d8e0749
commit
426e5c2d1f
1 changed files with 1 additions and 6 deletions
|
|
@ -59,9 +59,4 @@ proc supportsCopyMem*(t: typedesc): bool {.magic: "TypeTrait".}
|
|||
|
||||
|
||||
when isMainModule:
|
||||
# echo type(42)
|
||||
import streams
|
||||
var ss = newStringStream()
|
||||
ss.write($type(42)) # needs `$`
|
||||
ss.setPosition(0)
|
||||
doAssert ss.readAll() == "int"
|
||||
doAssert $type(42) == "int"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue