mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 10:54:42 +00:00
Adds idetools testcase. Refs #416.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -170,6 +170,7 @@ examples/cross_calculator/android/tags
|
||||
/tests/caas/idetools_api
|
||||
/tests/caas/imported
|
||||
/tests/caas/issue_416
|
||||
/tests/caas/issue_452
|
||||
/tests/caas/main
|
||||
/tests/caasdriver
|
||||
/tools/nimgrep
|
||||
|
||||
8
tests/caas/issue_452.nim
Normal file
8
tests/caas/issue_452.nim
Normal file
@@ -0,0 +1,8 @@
|
||||
const
|
||||
VERSION_STR1* = "0.5.0" ## Idetools shifts this one column.
|
||||
VERSION_STR2 = "0.5.0" ## This one is ok.
|
||||
VERSION_STR3* = "0.5.0" ## Bad.
|
||||
VERSION_STR4 = "0.5.0" ## Ok.
|
||||
|
||||
proc forward1*(): string = result = ""
|
||||
proc forward2(): string = result = ""
|
||||
11
tests/caas/issue_452.txt
Normal file
11
tests/caas/issue_452.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
issue_452.nim
|
||||
> c
|
||||
SuccessX
|
||||
> idetools --track:issue_452.nim,2,2 --def
|
||||
def\tskConst\tissue_452.VERSION_STR1\tstring
|
||||
> idetools --track:issue_452.nim,3,2 --def
|
||||
def\tskConst\tissue_452.VERSION_STR2\tstring
|
||||
> idetools --track:issue_452.nim,7,5 --def
|
||||
def\tskProc\tissue_452.forward1\tproc \(\): string\t
|
||||
> idetools --track:issue_452.nim,8,5 --def
|
||||
def\tskProc\tissue_452.forward2\tproc \(\): string\t
|
||||
Reference in New Issue
Block a user