nimsuggest & tester: many improvements, test new dependency tracking
This commit is contained in:
parent
a644471b12
commit
eb2455075e
6 changed files with 127 additions and 15 deletions
27
tools/nimsuggest/tests/tdot3.nim
Normal file
27
tools/nimsuggest/tests/tdot3.nim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Test basic module dependency recompilations.
|
||||
|
||||
import dep
|
||||
|
||||
proc main(f: Foo) =
|
||||
f.#[!]#
|
||||
|
||||
# the tester supports the spec section at the bottom of the file and
|
||||
# this way, the line numbers more often stay the same
|
||||
|
||||
discard """
|
||||
!copy dep_v1.nim dep.nim
|
||||
$nimsuggest --tester $file
|
||||
>sug $1
|
||||
sug;;skField;;x;;int;;*dep.nim;;8;;4;;"";;100
|
||||
sug;;skField;;y;;int;;*dep.nim;;8;;8;;"";;100
|
||||
sug;;skProc;;tdot3.main;;proc (f: Foo);;$file;;5;;5;;"";;100
|
||||
|
||||
!copy dep_v2.nim dep.nim
|
||||
>mod $path/dep.nim
|
||||
>sug $1
|
||||
sug;;skField;;x;;int;;*dep.nim;;8;;4;;"";;100
|
||||
sug;;skField;;y;;int;;*dep.nim;;8;;8;;"";;100
|
||||
sug;;skField;;z;;string;;*dep.nim;;9;;4;;"";;100
|
||||
sug;;skProc;;tdot3.main;;proc (f: Foo);;$file;;5;;5;;"";;100
|
||||
!del dep.nim
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue