added test

This commit is contained in:
ryuukk 2023-02-01 19:16:29 +01:00
parent 7a52c92139
commit 855250f6f0
5 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1 @@
import testing; void main() { Hello hello; hello.w }

View File

@ -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

View File

@ -0,0 +1,11 @@
module testing.a;
import testing;
struct Fuck {}
struct Hello
{
World world;
Fuck fuck;
}

View File

@ -0,0 +1,8 @@
module testing.b;
import testing;
struct World
{
int field;
}

View File

@ -0,0 +1,4 @@
module testing;
public import testing.a;
public import testing.b;