From 38e0e3feefad4e5974224a05cfa612c52bd8e358 Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 11 Oct 2019 10:08:36 +0200 Subject: added adalsp test --- test/command_callback/test_adalsp_command_callbacks.vader | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/command_callback/test_adalsp_command_callbacks.vader (limited to 'test') diff --git a/test/command_callback/test_adalsp_command_callbacks.vader b/test/command_callback/test_adalsp_command_callbacks.vader new file mode 100644 index 00000000..73cbf296 --- /dev/null +++ b/test/command_callback/test_adalsp_command_callbacks.vader @@ -0,0 +1,12 @@ +Before: + call ale#assert#SetUpLinterTest('ada', 'adalsp') + +After: + call ale#assert#TearDownLinterTest() + +Execute(It does not set Ada sources by default): + AssertLinter 'adalsp', ale#Escape('adalsp') + +Execute(Sets adalsp executable): + let g:ale_ada_adalsp_executable = '/path/to /Ada' + AssertLinter 'adalsp', ale#Escape('adalsp') . ' ' . ale#Escape('/path/to /Ada') -- cgit v1.2.3 From c74cc931404ba94ccb71a6db2f54d78ba922aaab Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 11 Oct 2019 10:35:54 +0200 Subject: fixed test --- test/command_callback/test_adalsp_command_callbacks.vader | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/command_callback/test_adalsp_command_callbacks.vader b/test/command_callback/test_adalsp_command_callbacks.vader index 73cbf296..e02ade30 100644 --- a/test/command_callback/test_adalsp_command_callbacks.vader +++ b/test/command_callback/test_adalsp_command_callbacks.vader @@ -4,9 +4,6 @@ Before: After: call ale#assert#TearDownLinterTest() -Execute(It does not set Ada sources by default): - AssertLinter 'adalsp', ale#Escape('adalsp') - Execute(Sets adalsp executable): - let g:ale_ada_adalsp_executable = '/path/to /Ada' - AssertLinter 'adalsp', ale#Escape('adalsp') . ' ' . ale#Escape('/path/to /Ada') + let g:ale_ada_lsp_executable = '/path/to /Ada' + AssertLinter 'adalsp', ale#Escape('/path/to /Ada') -- cgit v1.2.3 From 321a3892a73b39bab4b1833b1473a6e0b46dc9fd Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 11 Oct 2019 10:41:19 +0200 Subject: fixed test again (this time for sure) --- test/command_callback/test_adalsp_command_callbacks.vader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/command_callback/test_adalsp_command_callbacks.vader b/test/command_callback/test_adalsp_command_callbacks.vader index e02ade30..92c6dfb0 100644 --- a/test/command_callback/test_adalsp_command_callbacks.vader +++ b/test/command_callback/test_adalsp_command_callbacks.vader @@ -6,4 +6,4 @@ After: Execute(Sets adalsp executable): let g:ale_ada_lsp_executable = '/path/to /Ada' - AssertLinter 'adalsp', ale#Escape('/path/to /Ada') + AssertLinter ale#Escape('/path/to /Ada'), ale#Escape('/path/to /Ada') -- cgit v1.2.3 From c30869617f6c829378d1931dc5ddf102924f5650 Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 11 Oct 2019 10:48:50 +0200 Subject: another fix for test --- test/command_callback/test_adalsp_command_callbacks.vader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/command_callback/test_adalsp_command_callbacks.vader b/test/command_callback/test_adalsp_command_callbacks.vader index 92c6dfb0..e635acb3 100644 --- a/test/command_callback/test_adalsp_command_callbacks.vader +++ b/test/command_callback/test_adalsp_command_callbacks.vader @@ -6,4 +6,4 @@ After: Execute(Sets adalsp executable): let g:ale_ada_lsp_executable = '/path/to /Ada' - AssertLinter ale#Escape('/path/to /Ada'), ale#Escape('/path/to /Ada') + AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada') -- cgit v1.2.3 From 2f181658e6e40798c74e2f58067ab3aeffab8224 Mon Sep 17 00:00:00 2001 From: Bartek thindil Jasicki Date: Fri, 18 Oct 2019 18:26:08 +0200 Subject: rename command variable to *_adals_* instead of *_lsp_* and whole name to adals instead of adalsp --- test/command_callback/test_adals_command_callbacks.vader | 9 +++++++++ test/command_callback/test_adalsp_command_callbacks.vader | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 test/command_callback/test_adals_command_callbacks.vader delete mode 100644 test/command_callback/test_adalsp_command_callbacks.vader (limited to 'test') diff --git a/test/command_callback/test_adals_command_callbacks.vader b/test/command_callback/test_adals_command_callbacks.vader new file mode 100644 index 00000000..0b1f6006 --- /dev/null +++ b/test/command_callback/test_adals_command_callbacks.vader @@ -0,0 +1,9 @@ +Before: + call ale#assert#SetUpLinterTest('ada', 'adals') + +After: + call ale#assert#TearDownLinterTest() + +Execute(Sets adals executable): + let g:ale_ada_adals_executable = '/path/to /Ada' + AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada') diff --git a/test/command_callback/test_adalsp_command_callbacks.vader b/test/command_callback/test_adalsp_command_callbacks.vader deleted file mode 100644 index e635acb3..00000000 --- a/test/command_callback/test_adalsp_command_callbacks.vader +++ /dev/null @@ -1,9 +0,0 @@ -Before: - call ale#assert#SetUpLinterTest('ada', 'adalsp') - -After: - call ale#assert#TearDownLinterTest() - -Execute(Sets adalsp executable): - let g:ale_ada_lsp_executable = '/path/to /Ada' - AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada') -- cgit v1.2.3 From b454e4314301ad5bdf159f849dc6f30bb377d8f2 Mon Sep 17 00:00:00 2001 From: Bartek Jasicki Date: Tue, 5 Nov 2019 18:00:16 +0100 Subject: Update test/command_callback/test_adals_command_callbacks.vader Co-Authored-By: timlag1305 --- test/command_callback/test_adals_command_callbacks.vader | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/command_callback/test_adals_command_callbacks.vader b/test/command_callback/test_adals_command_callbacks.vader index 0b1f6006..5a04594e 100644 --- a/test/command_callback/test_adals_command_callbacks.vader +++ b/test/command_callback/test_adals_command_callbacks.vader @@ -7,3 +7,11 @@ After: Execute(Sets adals executable): let g:ale_ada_adals_executable = '/path/to /Ada' AssertLinter '/path/to /Ada', ale#Escape('/path/to /Ada') + +Execute(Sets adals encoding): + let b:ale_ada_adals_encoding = 'iso-8859-1' + AssertLSPConfig {'ada.defaultCharset': 'iso-8859-1', 'ada.projectFile': 'default.gpr'} + +Execute(Sets adals project): + let g:ale_ada_adals_project = 'myproject.gpr' + AssertLSPConfig {'ada.defaultCharset': 'utf-8', 'ada.projectFile': 'myproject.gpr'} -- cgit v1.2.3