add test case and update readme
This commit is contained in:
parent
85da524224
commit
8ff220578c
|
|
@ -224,6 +224,12 @@ this, run the client with the -I option:
|
||||||
|
|
||||||
dcd-client -Ipath/to/imports
|
dcd-client -Ipath/to/imports
|
||||||
|
|
||||||
|
## Remove import search path
|
||||||
|
|
||||||
|
Import paths can be removed from the server without restarting it. To accomplish
|
||||||
|
this, run the client with the -R option:
|
||||||
|
|
||||||
|
dcd-client -Rpath/to/imports
|
||||||
|
|
||||||
## Find declaration of symbol at cursor
|
## Find declaration of symbol at cursor
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ GREEN="\033[32m"
|
||||||
YELLOW="\033[33m"
|
YELLOW="\033[33m"
|
||||||
NORMAL="\033[0m"
|
NORMAL="\033[0m"
|
||||||
IMPORTS=$(pwd)/imports
|
IMPORTS=$(pwd)/imports
|
||||||
|
export IMPORTS
|
||||||
|
|
||||||
fail_count=0
|
fail_count=0
|
||||||
pass_count=0
|
pass_count=0
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
identifiers
|
||||||
|
Point s
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
import point:;
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
|
||||||
|
../../bin/dcd-client $1 file.d -c13 > actual1.txt
|
||||||
|
diff actual1.txt expected1.txt
|
||||||
|
../../bin/dcd-client $1 file.d -R$IMPORTS
|
||||||
|
../../bin/dcd-client $1 file.d -c13 > actual2.txt
|
||||||
|
diff actual2.txt expected2.txt
|
||||||
|
../../bin/dcd-client $1 -I$IMPORTS
|
||||||
|
../../bin/dcd-client $1 file.d -c13 > actual1.txt
|
||||||
|
diff actual1.txt expected1.txt
|
||||||
Loading…
Reference in New Issue