suggest-invalid-source.txt 820 B

123456789101112131415161718192021222324252627
  1. main_dirty.nim
  2. # A variant of the suggest-compile.txt, instead of using a "base" correct
  3. # source, this one uses the "broken" main_dirty.nim which won't compile. The
  4. # test tries to stress idetools to still provide a valid answer if possible,
  5. # and at least provide the same output with repeated queries rather than dying
  6. # after the first compilation error.
  7. # The first query should work and provide valid suggestions.
  8. > idetools --track:$TESTNIM,12,6 --suggest $SILENT
  9. skField\tx
  10. skField\ty
  11. # Repeating the query should work too.
  12. > idetools --track:$TESTNIM,12,6 --suggest $SILENT
  13. skField\tx
  14. skField\ty
  15. # Expect now a compilation failure.
  16. > c
  17. !SuccessX
  18. invalid indentation
  19. # Repeating suggestions *after broken compilation* should work too.
  20. > idetools --track:$TESTNIM,12,6 --suggest $SILENT
  21. skField\tx
  22. skField\ty