added test
This commit is contained in:
parent
7a52c92139
commit
855250f6f0
|
|
@ -0,0 +1 @@
|
||||||
|
import testing; void main() { Hello hello; hello.w }
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
echo "import: $PWD/testing"
|
||||||
|
|
||||||
|
../../bin/dcd-client $1 app.d --extended -I $PWD/ -c50 > actual.txt
|
||||||
|
echo -e "identifiers\nworld\tv\tWorld world\t$PWD/testing/a.d 77\t" > expected.txt
|
||||||
|
diff actual.txt expected.txt --strip-trailing-cr
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
module testing.a;
|
||||||
|
|
||||||
|
import testing;
|
||||||
|
|
||||||
|
struct Fuck {}
|
||||||
|
|
||||||
|
struct Hello
|
||||||
|
{
|
||||||
|
World world;
|
||||||
|
Fuck fuck;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
module testing.b;
|
||||||
|
|
||||||
|
import testing;
|
||||||
|
|
||||||
|
struct World
|
||||||
|
{
|
||||||
|
int field;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
module testing;
|
||||||
|
|
||||||
|
public import testing.a;
|
||||||
|
public import testing.b;
|
||||||
Loading…
Reference in New Issue