From a6074cfb7a30ded32c49c69a56a19381ac250dc3 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 10 Aug 2017 21:34:15 +0200 Subject: [PATCH] more complex calltips test --- tests/tc057/expected1.txt | 2 ++ tests/tc057/file.d | 8 ++++++++ tests/tc057/run.sh | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 tests/tc057/expected1.txt create mode 100644 tests/tc057/file.d create mode 100755 tests/tc057/run.sh diff --git a/tests/tc057/expected1.txt b/tests/tc057/expected1.txt new file mode 100644 index 0000000..8bc98d2 --- /dev/null +++ b/tests/tc057/expected1.txt @@ -0,0 +1,2 @@ +calltips +void doStuff(int a, int b) diff --git a/tests/tc057/file.d b/tests/tc057/file.d new file mode 100644 index 0000000..80072ce --- /dev/null +++ b/tests/tc057/file.d @@ -0,0 +1,8 @@ +void doStuff(int a, int b) { return; } +int getInt(int i, int[] b) { return i; } +int b(int a) { return a; } +void main(string[] args) +{ + doStuff(getInt(1, [b(3)]),); + auto x = 10, 20; +} diff --git a/tests/tc057/run.sh b/tests/tc057/run.sh new file mode 100755 index 0000000..3376eea --- /dev/null +++ b/tests/tc057/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c161 > actual1.txt +diff actual1.txt expected1.txt