diff options
author | Miran <narimiran@disroot.org> | 2019-03-07 00:49:39 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-07 00:49:39 +0100 |
commit | 2b5e48d80735be60c68023de114a586bbcc18360 (patch) | |
tree | 4031d089c40c86339aa2a9b15b9f47840c473400 /nimsuggest/tests | |
parent | 26f48437ca429f8e25f20d1f986c5b46e83cc90b (diff) | |
download | Nim-2b5e48d80735be60c68023de114a586bbcc18360.tar.gz |
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
Diffstat (limited to 'nimsuggest/tests')
-rw-r--r-- | nimsuggest/tests/tdot1.nim | 2 | ||||
-rw-r--r-- | nimsuggest/tests/tdot2.nim | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/nimsuggest/tests/tdot1.nim b/nimsuggest/tests/tdot1.nim index 9ac92f8a5..c64e1138c 100644 --- a/nimsuggest/tests/tdot1.nim +++ b/nimsuggest/tests/tdot1.nim @@ -1,5 +1,5 @@ discard """ -$nimsuggest --tester $file +$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 diff --git a/nimsuggest/tests/tdot2.nim b/nimsuggest/tests/tdot2.nim index f02b5cf16..1a2df9ba2 100644 --- a/nimsuggest/tests/tdot2.nim +++ b/nimsuggest/tests/tdot2.nim @@ -15,7 +15,7 @@ proc main(f: Foo) = # the tester supports the spec section at the bottom of the file and # this way, the line numbers more often stay the same discard """ -$nimsuggest --tester $file +$nimsuggest --tester --maxresults:3 $file >sug $1 sug;;skField;;x;;int;;$file;;8;;4;;"";;100;;None sug;;skField;;y;;int;;$file;;8;;7;;"";;100;;None @@ -25,5 +25,4 @@ sug;;skProc;;tdot2.main;;proc (f: Foo);;$file;;12;;5;;"";;100;;None sug;;skField;;x;;int;;$file;;8;;4;;"";;100;;None sug;;skField;;y;;int;;$file;;8;;7;;"";;100;;None sug;;skField;;z;;string;;$file;;10;;6;;"";;100;;None -sug;;skProc;;tdot2.main;;proc (f: Foo);;$file;;12;;5;;"";;100;;None """ |