Tests for doc comments

This commit is contained in:
Hackerpilot 2016-01-07 21:10:19 -08:00
parent 823b93f0f7
commit b0bbefa48b
9 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1 @@
doc1\ndoc2

View File

@ -0,0 +1 @@
doc1\ndoc3\ndoc3.5

View File

@ -0,0 +1 @@
doc1\ndoc4

View File

@ -0,0 +1 @@
stuff\nwhat could go wrong?

View File

@ -0,0 +1 @@
abc\ndef

View File

@ -0,0 +1 @@
documentation for g\nmore documentation for g

View File

@ -0,0 +1 @@
test\nwhich comment is there?

30
tests/tc024/file.d Normal file
View File

@ -0,0 +1,30 @@
/** documentation for g */
int g; /// more documentation for g
/// test
alias cool = string; /// which comment is there?
/// doc1
int a, /// doc2
b, /** doc3 */ /**doc3.5*/
c; /// doc4
/**
* stuff
*/
int d; /** what could go wrong? */
/** abc */
/** def */
int e;
unittest
{
a;
b;
c;
d;
e;
g;
cool;
}

23
tests/tc024/run.sh Executable file
View File

@ -0,0 +1,23 @@
set -e
set -u
../../bin/dcd-client file.d -c286 -d > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client file.d -c290 -d > actual2.txt
diff actual2.txt expected2.txt
../../bin/dcd-client file.d -c294 -d > actual3.txt
diff actual3.txt expected3.txt
../../bin/dcd-client file.d -c298 -d> actual4.txt
diff actual4.txt expected4.txt
../../bin/dcd-client file.d -c302 -d> actual5.txt
diff actual5.txt expected5.txt
../../bin/dcd-client file.d -c306 -d> actual6.txt
diff actual6.txt expected6.txt
../../bin/dcd-client file.d -c313 -d> actual7.txt
diff actual7.txt expected7.txt