From 853a134ae7f6e447cf18e02d6c6718f3d96aa8a5 Mon Sep 17 00:00:00 2001 From: RUSshy <18348637+RUSshy@users.noreply.github.com> Date: Tue, 31 Aug 2021 16:13:50 +0200 Subject: [PATCH] Update test to cover non function case --- tests/tc_auto_variable/expected_nf.txt | 4 ++++ tests/tc_auto_variable/file_nf.d | 1 + tests/tc_auto_variable/run.sh | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 tests/tc_auto_variable/expected_nf.txt create mode 100644 tests/tc_auto_variable/file_nf.d diff --git a/tests/tc_auto_variable/expected_nf.txt b/tests/tc_auto_variable/expected_nf.txt new file mode 100644 index 0000000..9bf06f9 --- /dev/null +++ b/tests/tc_auto_variable/expected_nf.txt @@ -0,0 +1,4 @@ +identifiers +data v MyData data stdin 41 +dchar k +double k diff --git a/tests/tc_auto_variable/file_nf.d b/tests/tc_auto_variable/file_nf.d new file mode 100644 index 0000000..911be2a --- /dev/null +++ b/tests/tc_auto_variable/file_nf.d @@ -0,0 +1 @@ +struct MyData{} alias MyData Stuff; auto data = Stuff(); d \ No newline at end of file diff --git a/tests/tc_auto_variable/run.sh b/tests/tc_auto_variable/run.sh index dcd406e..ffe8a9f 100644 --- a/tests/tc_auto_variable/run.sh +++ b/tests/tc_auto_variable/run.sh @@ -3,3 +3,6 @@ set -u ../../bin/dcd-client $1 --extended file.d -c72 > actual.txt diff actual.txt expected.txt + +../../bin/dcd-client $1 --extended file_nf.d -c58 > actual_nf.txt +diff actual_nf.txt expected_nf.txt