Check in regression tests for #349 and #347

This commit is contained in:
Hackerpilot 2016-09-14 15:20:20 -07:00
parent f0f117ca78
commit 8d8989bfb0
7 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
A.none

View File

@ -0,0 +1 @@
B.one

13
tests/tc042/file.d Normal file
View File

@ -0,0 +1,13 @@
/// A
enum A
{
none, /// A.none
one, /// A.one
}
/// B
enum B
{
none, /// B.none
one, /// B.one
}

8
tests/tc042/run.sh Executable file
View File

@ -0,0 +1,8 @@
set -e
set -u
../../bin/dcd-client $1 file.d -d -c21 > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client $1 file.d -d -c119 > actual2.txt
diff actual2.txt expected2.txt

View File

@ -0,0 +1 @@
Not found

5
tests/tc043/file.d Normal file
View File

@ -0,0 +1,5 @@
void doStuff(int things) {}
void main()
{
things
}

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

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -l -c48 > actual1.txt
diff actual1.txt expected1.txt