summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-05-05 15:12:50 +0300
committerZahary Karadjov <zahary@gmail.com>2013-05-05 15:12:50 +0300
commitf52ea04d229b5cdf70a352efd93e0e01fa8faadf (patch)
treec636ed75f8f00380397c47ac571275ac3215c2a9 /tests
parent5a2720e99075166d2192fd40927f695f58124028 (diff)
downloadNim-f52ea04d229b5cdf70a352efd93e0e01fa8faadf.tar.gz
support suggest after compile in caas mode
Diffstat (limited to 'tests')
-rw-r--r--tests/caas/compile-suggest.txt7
-rw-r--r--tests/caas/main_dirty.nim14
-rw-r--r--tests/caas/suggest-compile.txt7
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/caas/compile-suggest.txt b/tests/caas/compile-suggest.txt
new file mode 100644
index 000000000..4e2ab9729
--- /dev/null
+++ b/tests/caas/compile-suggest.txt
@@ -0,0 +1,7 @@
+main.nim
+> c
+SuccessX
+> idetools --trackDirty:main_dirty.nim,main.nim,12,7 --suggest main.nim
+skField\tx
+skField\ty
+
diff --git a/tests/caas/main_dirty.nim b/tests/caas/main_dirty.nim
new file mode 100644
index 000000000..95fb6c624
--- /dev/null
+++ b/tests/caas/main_dirty.nim
@@ -0,0 +1,14 @@
+import imported, strutils
+
+type
+  TFoo = object
+    x: int
+    y: string
+
+proc main =
+  var t1 = "text"
+  var t2 = t1.toUpper
+  var foo = TFoo(x: 10, y: "test")
+  foo.
+  echo(t1 +++ t2)
+
diff --git a/tests/caas/suggest-compile.txt b/tests/caas/suggest-compile.txt
new file mode 100644
index 000000000..49d0dc431
--- /dev/null
+++ b/tests/caas/suggest-compile.txt
@@ -0,0 +1,7 @@
+main.nim
+> idetools --trackDirty:main_dirty.nim,main.nim,12,7 --suggest main.nim
+skField\tx
+skField\ty
+> c
+SuccessX
+