summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-04-16 12:20:43 +0200
committerGitHub <noreply@github.com>2021-04-16 12:20:43 +0200
commit606288974f5a424d4c5063bc6ce9c1b5cdc0a7bc (patch)
tree1923c8aa5bbba787c73f35cfc77934f49ba73efa /tests
parent8161b02897a75c4b30593dbcc189cbd49d3832ea (diff)
downloadNim-606288974f5a424d4c5063bc6ce9c1b5cdc0a7bc.tar.gz
ic navigator tests (#17735)
* IC navigator: first basic test
Diffstat (limited to 'tests')
-rw-r--r--tests/navigator/tnav1.nim33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/navigator/tnav1.nim b/tests/navigator/tnav1.nim
new file mode 100644
index 000000000..d7c6f63e2
--- /dev/null
+++ b/tests/navigator/tnav1.nim
@@ -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
+