diff --git a/tests/tc033/bar.d b/tests/tc033/bar.d new file mode 100644 index 0000000..4ec195e --- /dev/null +++ b/tests/tc033/bar.d @@ -0,0 +1,3 @@ +module tc033.bar; + +void fooBarFunc() {} \ No newline at end of file diff --git a/tests/tc033/expected1.txt b/tests/tc033/expected1.txt new file mode 100644 index 0000000..a48220d --- /dev/null +++ b/tests/tc033/expected1.txt @@ -0,0 +1,2 @@ +identifiers +bar M diff --git a/tests/tc033/expected2.txt b/tests/tc033/expected2.txt new file mode 100644 index 0000000..fe208d3 --- /dev/null +++ b/tests/tc033/expected2.txt @@ -0,0 +1,2 @@ +identifiers +fooBarFunc f diff --git a/tests/tc033/file.d b/tests/tc033/file.d new file mode 100644 index 0000000..6f11233 --- /dev/null +++ b/tests/tc033/file.d @@ -0,0 +1,3 @@ +import tc033.bar; + +void main() { fooBarF } \ No newline at end of file diff --git a/tests/tc033/run.sh b/tests/tc033/run.sh new file mode 100755 index 0000000..83844db --- /dev/null +++ b/tests/tc033/run.sh @@ -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