From 1f8c5c37d38f4f4a8f9651e5a6ca699fc08ba53d Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sun, 16 Jun 2013 21:43:34 +0200 Subject: [PATCH] Adds idetools test to verify --usages, reuses testcase. --- tests/caas/forward_usages.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/caas/forward_usages.txt diff --git a/tests/caas/forward_usages.txt b/tests/caas/forward_usages.txt new file mode 100644 index 0000000000..05ef517dc2 --- /dev/null +++ b/tests/caas/forward_usages.txt @@ -0,0 +1,17 @@ +forward_declarations.nim + +> c --verbosity:0 --hints:on +SuccessX + +# None of the following return three instances of the echoHello proc, the first +# being the forward declaration, the second being the usage inside testForward, +# and the third being the actual implementation. + +> idetools --track:$TESTNIM,5,5 --usages $SILENT +skProc.*\n.*skProc.*\n.*skProc + +> idetools --track:$TESTNIM,9,5 --usages $SILENT +skProc.*\n.*skProc.*\n.*skProc + +> idetools --track:$TESTNIM,11,5 --usages $SILENT +skProc.*\n.*skProc.*\n.*skProc