Test cases for #244

This commit is contained in:
Hackerpilot 2015-08-20 03:50:45 -07:00
parent 2e66706b71
commit 989501bec5
5 changed files with 21 additions and 0 deletions

3
tests/imports/a.d Normal file
View File

@ -0,0 +1,3 @@
module a;
public import b;
string FOO;

6
tests/imports/b.d Normal file
View File

@ -0,0 +1,6 @@
module b;
string BAR;
struct S {
int x;
}

4
tests/tc017/expected.txt Normal file
View File

@ -0,0 +1,4 @@
identifiers
BAR v
FOO v
S s

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

@ -0,0 +1,3 @@
module main;
import mod = a;
mod.

5
tests/tc017/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client file.d -c33 > actual.txt
diff actual.txt expected.txt