Add more regression tests

This commit is contained in:
Hackerpilot 2015-01-31 00:23:03 -08:00
parent 002ba1c5a8
commit 537e5b3c2c
6 changed files with 35 additions and 0 deletions

6
tests/tc004/expected.txt Normal file
View File

@ -0,0 +1,6 @@
identifiers
stdint M
stdio M
stdiobase M
stream M
string M

2
tests/tc004/file.d Normal file
View File

@ -0,0 +1,2 @@
import std.st
// Regression test for issue 178

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

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

2
tests/tc005/expected.txt Normal file
View File

@ -0,0 +1,2 @@
identifiers
ABC c

15
tests/tc005/file.d Normal file
View File

@ -0,0 +1,15 @@
import std.stdio;
final abstract class ABC
{
static @property bool mybool()
{
return true;
}
}
void main(string[] s)
{
while(!ABC.mybool) {}
}
// Regression test for issue 182

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

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