summary refs log tree commit diff stats
path: root/tests/caas
diff options
context:
space:
mode:
Diffstat (limited to 'tests/caas')
-rw-r--r--tests/caas/basic-recompile.txt7
-rw-r--r--tests/caas/compile-then-def.txt9
-rw-r--r--tests/caas/def-then-compile.txt7
-rw-r--r--tests/caas/imported.nim3
-rw-r--r--tests/caas/main.nim7
5 files changed, 33 insertions, 0 deletions
diff --git a/tests/caas/basic-recompile.txt b/tests/caas/basic-recompile.txt
new file mode 100644
index 000000000..9c943fe88
--- /dev/null
+++ b/tests/caas/basic-recompile.txt
@@ -0,0 +1,7 @@
+main.nim
+> c
+SuccessX
+> c
+! Processing
+SuccessX
+
diff --git a/tests/caas/compile-then-def.txt b/tests/caas/compile-then-def.txt
new file mode 100644
index 000000000..a5080c50d
--- /dev/null
+++ b/tests/caas/compile-then-def.txt
@@ -0,0 +1,9 @@
+main.nim
+> c
+SuccessX
+> idetools --track:main.nim,5,18 --def main.nim
+strutils.toUpper
+SuccessX
+> idetools --track:main.nim,5,18 --def main.nim
+strutils.toUpper
+SuccessX
diff --git a/tests/caas/def-then-compile.txt b/tests/caas/def-then-compile.txt
new file mode 100644
index 000000000..efa4dcbb3
--- /dev/null
+++ b/tests/caas/def-then-compile.txt
@@ -0,0 +1,7 @@
+main.nim
+> idetools --track:main.nim,5,18 --def main.nim
+strutils.toUpper
+SuccessX
+> c
+SuccessX
+
diff --git a/tests/caas/imported.nim b/tests/caas/imported.nim
new file mode 100644
index 000000000..a4bc5c0e6
--- /dev/null
+++ b/tests/caas/imported.nim
@@ -0,0 +1,3 @@
+proc `+++`*(a,b: string): string =
+  return a & "  " & b
+
diff --git a/tests/caas/main.nim b/tests/caas/main.nim
new file mode 100644
index 000000000..fafeff93b
--- /dev/null
+++ b/tests/caas/main.nim
@@ -0,0 +1,7 @@
+import imported, strutils
+
+proc main =
+  var t1 = "text"
+  var t2 = t1.toUpper
+  echo(t1 +++ t2)
+