summary refs log tree commit diff stats
path: root/nimsuggest/tests/tchk1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'nimsuggest/tests/tchk1.nim')
-rw-r--r--nimsuggest/tests/tchk1.nim27
1 files changed, 27 insertions, 0 deletions
diff --git a/nimsuggest/tests/tchk1.nim b/nimsuggest/tests/tchk1.nim
new file mode 100644
index 000000000..be6115c1c
--- /dev/null
+++ b/nimsuggest/tests/tchk1.nim
@@ -0,0 +1,27 @@
+# test we get some suggestion at the end of the file
+
+
+
+
+
+
+
+type
+
+
+template foo() =
+
+proc main =
+
+#[!]#
+discard """
+$nimsuggest --tester $file
+>chk $1
+chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/tchk1.nim [Processing]";;0
+chk;;skUnknown;;;;Error;;$file;;12;;0;;"identifier expected, but got \'keyword template\'";;0
+chk;;skUnknown;;;;Error;;$file;;14;;0;;"nestable statement requires indentation";;0
+chk;;skUnknown;;;;Error;;$file;;17;;0;;"invalid indentation";;0
+chk;;skUnknown;;;;Error;;$file;;12;;0;;"implementation of \'foo\' expected";;0
+chk;;skUnknown;;;;Hint;;$file;;12;;9;;"\'foo\' is declared but not used [XDeclaredButNotUsed]";;0
+chk;;skUnknown;;;;Hint;;$file;;14;;5;;"\'main\' is declared but not used [XDeclaredButNotUsed]";;0
+"""