summary refs log tree commit diff stats
path: root/nimsuggest/tests/tstrutils.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-03-09 14:58:14 +0100
committerAraq <rumpf_a@web.de>2017-03-09 14:58:14 +0100
commit475579541621ca83cfcbb35df7f5d9ef4236cdfa (patch)
tree81f95f9ae846b61c7f2878a275413f5a3fc9bea3 /nimsuggest/tests/tstrutils.nim
parentda821a22d9e390d59f66018630fb4c39ba83eaf3 (diff)
downloadNim-475579541621ca83cfcbb35df7f5d9ef4236cdfa.tar.gz
nimsuggest: more precise cursor tracking
Diffstat (limited to 'nimsuggest/tests/tstrutils.nim')
-rw-r--r--nimsuggest/tests/tstrutils.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/nimsuggest/tests/tstrutils.nim b/nimsuggest/tests/tstrutils.nim
new file mode 100644
index 000000000..34da8cb53
--- /dev/null
+++ b/nimsuggest/tests/tstrutils.nim
@@ -0,0 +1,9 @@
+discard """
+$nimsuggest --tester lib/pure/strutils.nim
+>def lib/pure/strutils.nim:2300:6
+def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"same as `assert` but is always turned on and not affected by the\x0A``--assertions`` command line switch.";;100
+"""
+
+# Line 2300 in strutils.nim is doAssert and this is unlikely to change
+# soon since there are a whole lot of doAsserts there.
+