tests have been corrected

This commit is contained in:
antlord 2016-07-30 22:51:43 +08:00
parent 44bcaf46f7
commit ab82590bb6
7 changed files with 13 additions and 21 deletions

View File

@ -0,0 +1,2 @@
struct pair { int a; int b; };
pair func(){ return pair(); } int main() { auto var = func(); var. }

View File

@ -1,8 +1,9 @@
identifiers
a v
alignof k
b v
init k
mangleof k
max k
min k
sizeof k
stringof k
tupleof k

View File

@ -1,12 +0,0 @@
identifiers
alignof k
dup k
idup k
init k
length k
mangleof k
ptr k
reverse k
sizeof k
sort k
stringof k

View File

@ -1,3 +0,0 @@
int[] func(){ return [1,2]; } int main() { auto arr = func(); arr[0]. }
int[] func(){ return [1,2]; } int main() { int[] arr = func(); arr[0]. }
struct pair { int a; int b; }; pair func(){ return pair(); } int main() { auto var = func(); var. }

View File

@ -0,0 +1,2 @@
struct pair { int a; int b; };
pair[] func(){ return [pair(1,2)]; } int main() { auto arr = func(); arr[0]. }

View File

@ -0,0 +1,2 @@
struct pair { int a; int b; };
pair[] func(){ return [pair(1,2)]; } int main() { auto arr = func(); arr[0]. }

View File

@ -1,11 +1,11 @@
set -e
set -u
../../bin/dcd-client $1 file.d -c70 > actual.txt
../../bin/dcd-client $1 implicit_array.d -c108 > actual.txt
diff actual.txt expected1.txt
../../bin/dcd-client $1 file.d -c143 > actual.txt
../../bin/dcd-client $1 excplicit_array.d -c98 > actual.txt
diff actual.txt expected1.txt
../../bin/dcd-client $1 file.d -c242 > actual.txt
diff actual.txt expected2.txt
../../bin/dcd-client $1 implicit_var.d -c108 > actual.txt
diff actual.txt expected1.txt