mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-27 13:49:53 +03:00
parent
f0f117ca78
commit
8d8989bfb0
7 changed files with 34 additions and 0 deletions
1
tests/tc042/expected1.txt
Normal file
1
tests/tc042/expected1.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
A.none
|
1
tests/tc042/expected2.txt
Normal file
1
tests/tc042/expected2.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
B.one
|
13
tests/tc042/file.d
Normal file
13
tests/tc042/file.d
Normal 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
8
tests/tc042/run.sh
Executable 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
|
1
tests/tc043/expected1.txt
Normal file
1
tests/tc043/expected1.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Not found
|
5
tests/tc043/file.d
Normal file
5
tests/tc043/file.d
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
void doStuff(int things) {}
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
things
|
||||||
|
}
|
5
tests/tc043/run.sh
Executable file
5
tests/tc043/run.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
../../bin/dcd-client $1 file.d -l -c48 > actual1.txt
|
||||||
|
diff actual1.txt expected1.txt
|
Loading…
Add table
Add a link
Reference in a new issue