mirror of
https://github.com/dlang-community/DCD.git
synced 2025-04-27 05:39:55 +03:00
Added test case
This commit is contained in:
parent
b810daaa8f
commit
6ecc8ffd7c
5 changed files with 20 additions and 0 deletions
3
tests/tc033/bar.d
Normal file
3
tests/tc033/bar.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
module tc033.bar;
|
||||
|
||||
void fooBarFunc() {}
|
2
tests/tc033/expected1.txt
Normal file
2
tests/tc033/expected1.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
identifiers
|
||||
bar M
|
2
tests/tc033/expected2.txt
Normal file
2
tests/tc033/expected2.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
identifiers
|
||||
fooBarFunc f
|
3
tests/tc033/file.d
Normal file
3
tests/tc033/file.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
import tc033.bar;
|
||||
|
||||
void main() { fooBarF }
|
10
tests/tc033/run.sh
Executable file
10
tests/tc033/run.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
../../bin/dcd-client $1 -I bar.d
|
||||
|
||||
../../bin/dcd-client $1 file.d -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
|
||||
diff actual1.txt expected1.txt
|
||||
|
||||
../../bin/dcd-client $1 file.d -c 40 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt
|
||||
diff actual2.txt expected2.txt
|
Loading…
Add table
Add a link
Reference in a new issue