ic navigator tests (#17735)

* IC navigator: first basic test
This commit is contained in:
Andreas Rumpf 2021-04-16 12:20:43 +02:00 • committed by GitHub
commit 606288974f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 14 deletions

33
tests/navigator/tnav1.nim Normal file
View file

@ -0,0 +1,33 @@
discard """
cmd: "nim check $options --track:$file,12,7 $file"
nimout: '''def tnav1_temp.nim(11, 10)
usage tnav1_temp.nim(12, 8)
'''
"""
import std / [times]
proc foo(x: int) =
echo x
foo(3)
echo "yes", 1 != 3
#!EDIT!#
discard """
cmd: "nim check $options --track:$file,15,2 $file"
nimout: '''def tnav1_temp.nim(12, 6)
usage tnav1_temp.nim(15, 1)
'''
"""
import std / [times]
proc foo(x: int) =
echo x
foo(3)
echo "yes", 1 != 3