From 0961b5b584be3c0b1c0f8f187732848aee3972b4 Mon Sep 17 00:00:00 2001 From: Saem Ghani Date: Mon, 25 Jan 2021 00:52:35 -0800 Subject: regression test for nim-lang/nimsuggest#58 (#16817) Already works this is simply to catch any regressions. --- nimsuggest/tests/tuse.nim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nimsuggest/tests/tuse.nim (limited to 'nimsuggest') diff --git a/nimsuggest/tests/tuse.nim b/nimsuggest/tests/tuse.nim new file mode 100644 index 000000000..89a9c151a --- /dev/null +++ b/nimsuggest/tests/tuse.nim @@ -0,0 +1,22 @@ +# basic tests for use + +# bug #58 +proc someOtherProc() = + discard + +someOtherProc() + +proc #[!]#someProc*() = + discard + +#[!]#someProc() + +discard """ +$nimsuggest --tester $file +>use $1 +def;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, locks: 0.};;$file;;9;;5;;"";;100 +use;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, locks: 0.};;$file;;12;;0;;"";;100 +>use $2 +def;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, locks: 0.};;$file;;9;;5;;"";;100 +use;;skProc;;tuse.someProc;;proc (){.noSideEffect, gcsafe, locks: 0.};;$file;;12;;0;;"";;100 +""" -- cgit 1.4.1-2-gfad0