Files
Nim/nimsuggest/tests/tdot1.nim
Miran 2b5e48d807 move assertions and iterators out of system.nim (#10597)
* move assertions and iterators out of system.nim
* limit nimsuggest tests to the first 3 suggestions
2019-03-07 00:49:39 +01:00

15 lines
304 B
Nim

discard """
$nimsuggest --tester --maxresults:3 $file
>sug $1
sug;;skField;;x;;int;;$file;;11;;4;;"";;100;;None
sug;;skField;;y;;int;;$file;;11;;7;;"";;100;;None
sug;;skProc;;tdot1.main;;proc (f: Foo);;$file;;13;;5;;"";;100;;None
"""
type
Foo = object
x, y: int
proc main(f: Foo) =
if f.#[!]#: