mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
27 lines
820 B
Plaintext
27 lines
820 B
Plaintext
main_dirty.nim
|
|
# A variant of the suggest-compile.txt, instead of using a "base" correct
|
|
# source, this one uses the "broken" main_dirty.nim which won't compile. The
|
|
# test tries to stress idetools to still provide a valid answer if possible,
|
|
# and at least provide the same output with repeated queries rather than dying
|
|
# after the first compilation error.
|
|
|
|
# The first query should work and provide valid suggestions.
|
|
> idetools --track:$TESTNIM,12,6 --suggest $SILENT
|
|
skField\tx
|
|
skField\ty
|
|
|
|
# Repeating the query should work too.
|
|
> idetools --track:$TESTNIM,12,6 --suggest $SILENT
|
|
skField\tx
|
|
skField\ty
|
|
|
|
# Expect now a compilation failure.
|
|
> c
|
|
!SuccessX
|
|
invalid indentation
|
|
|
|
# Repeating suggestions *after broken compilation* should work too.
|
|
> idetools --track:$TESTNIM,12,6 --suggest $SILENT
|
|
skField\tx
|
|
skField\ty
|