tdot3.nim 774 B

12345678910111213141516171819202122232425262728
  1. # Test basic module dependency recompilations.
  2. import dep
  3. proc main(f: Foo) =
  4. f.#[!]#
  5. # the tester supports the spec section at the bottom of the file and
  6. # this way, the line numbers more often stay the same
  7. discard """
  8. !copy fixtures/mdep_v1.nim dep.nim
  9. $nimsuggest --tester $file
  10. >sug $1
  11. sug;;skField;;x;;int;;*dep.nim;;8;;4;;"";;100;;None
  12. sug;;skField;;y;;int;;*dep.nim;;8;;8;;"";;100;;None
  13. sug;;skProc;;tdot3.main;;proc (f: Foo);;$file;;5;;5;;"";;100;;None
  14. !copy fixtures/mdep_v2.nim dep.nim
  15. >mod $path/dep.nim
  16. >sug $1
  17. sug;;skField;;x;;int;;*dep.nim;;8;;4;;"";;100;;None
  18. sug;;skField;;y;;int;;*dep.nim;;8;;8;;"";;100;;None
  19. sug;;skField;;z;;string;;*dep.nim;;9;;4;;"";;100;;None
  20. sug;;skProc;;tdot3.main;;proc (f: Foo);;$file;;5;;5;;"";;100;;None
  21. !del dep.nim
  22. """