This commit is contained in:
Hackerpilot 2017-03-08 15:20:18 -08:00
parent 9e64dcf8e2
commit 974882fd74
5 changed files with 13 additions and 4 deletions

View File

@ -331,8 +331,8 @@ Socket createSocket(string socketFile, ushort port)
void printDocResponse(ref const AutocompleteResponse response)
{
import std.array: join;
response.docComments.join("\n").writeln;
import std.algorithm : each;
response.docComments.each!(writeln);
}
void printIdentifierResponse(ref const AutocompleteResponse response)

View File

@ -82,7 +82,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request,
return s.icmp("ditto") == 0;
}
void putDDocChar(dchar c)
void putDDocChar(char c)
{
switch (c)
{
@ -102,7 +102,7 @@ public AutocompleteResponse getDoc(const AutocompleteRequest request,
void putDDocString(string s)
{
foreach (c; s)
foreach (char c; s)
putDDocChar(c);
}

1
tests/tc046/expected.txt Normal file
View File

@ -0,0 +1 @@
D言語くん

3
tests/tc046/file.d Normal file
View File

@ -0,0 +1,3 @@
void a(){ foo(); }
/// D言語くん
void foo() {}

5
tests/tc046/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -d -c11 > actual.txt
diff actual.txt expected.txt