Tests for doc comments
This commit is contained in:
parent
823b93f0f7
commit
b0bbefa48b
|
@ -0,0 +1 @@
|
|||
doc1\ndoc2
|
|
@ -0,0 +1 @@
|
|||
doc1\ndoc3\ndoc3.5
|
|
@ -0,0 +1 @@
|
|||
doc1\ndoc4
|
|
@ -0,0 +1 @@
|
|||
stuff\nwhat could go wrong?
|
|
@ -0,0 +1 @@
|
|||
abc\ndef
|
|
@ -0,0 +1 @@
|
|||
documentation for g\nmore documentation for g
|
|
@ -0,0 +1 @@
|
|||
test\nwhich comment is there?
|
|
@ -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;
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue