Skip to content

Commit

Permalink
nimsuggest test tdot4 get it passing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
saem committed Dec 23, 2020
1 parent 70082e5 commit 90eac05
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions nimsuggest/tests/tdot4.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ proc main(inp: string): string =

echo "string literal here".#[!]#

# priority still tested, but limit results to avoid failures from other output
discard """
$nimsuggest --tester $file
$nimsuggest --tester --maxresults:2 $file
>sug $1
sug;;skProc;;tdot4.main;;proc (inp: string): string;;$file;;6;;5;;"";;100;;None
sug;;skFunc;;mstrutils.replace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;*mstrutils.nim;;9;;5;;"this is a test version of strutils.replace, it simply returns `by`";;100;;None
sug;;skFunc;;mstrutils.rereplace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;*mstrutils.nim;;3;;5;;"competes for priority in suggestion, here first, but never used in test";;100;;None
sug;;skFunc;;mstrutils.rerereplace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;*mstrutils.nim;;15;;5;;"isn\'t used and appears last, lowest priority";;100;;None
"""

#[
Open Questions:
- determine whether showing system.add and other system.* results is valid
- if above is valid, ensure priority of system.* vs mstrutils procs
Excluded results until open questions are answered
# sug;;skFunc;;mstrutils.rereplace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;*mstrutils.nim;;3;;5;;"competes for priority in suggestion, here first, but never used in test";;100;;None
# sug;;skFunc;;mstrutils.rerereplace;;proc (s: string, sub: string, by: string): string{.noSideEffect, gcsafe, locks: 0.};;*mstrutils.nim;;15;;5;;"isn\'t used and appears last, lowest priority";;100;;None
# """
]#

0 comments on commit 90eac05

Please sign in to comment.