Added test case

This commit is contained in:
WebFreak001 2016-06-05 02:33:07 +02:00
parent b810daaa8f
commit 6ecc8ffd7c
5 changed files with 20 additions and 0 deletions

3
tests/tc033/bar.d Normal file
View File

@ -0,0 +1,3 @@
module tc033.bar;
void fooBarFunc() {}

View File

@ -0,0 +1,2 @@
identifiers
bar M

View File

@ -0,0 +1,2 @@
identifiers
fooBarFunc f

3
tests/tc033/file.d Normal file
View File

@ -0,0 +1,3 @@
import tc033.bar;
void main() { fooBarF }

10
tests/tc033/run.sh Executable file
View File

@ -0,0 +1,10 @@
set -e
set -u
../../bin/dcd-client $1 -I bar.d
../../bin/dcd-client $1 file.d -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client $1 file.d -c 40 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt
diff actual2.txt expected2.txt