summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez@rubonnek.com>2023-03-14 16:55:28 -0400
committerGitHub <noreply@github.com>2023-03-14 20:55:28 +0000
commite1a0781f9de7d90554ea572cd220d72f823be3dc (patch)
tree99d4504938542555401a5e584378ba4067e97cea /test
parent011e4f6590e8fb26ee2b55bd6b368f1bb784a537 (diff)
downloadale-e1a0781f9de7d90554ea572cd220d72f823be3dc.zip
Fix `ale#util#GetBufferContents` and propagate use (#4457)
* Use newline characters instead in ale#util#GetBufferContents * Propagate use of ale#util#GetBufferContents * Add ale#util#GetContentBuffer test
Diffstat (limited to 'test')
-rw-r--r--test/lsp/test_lsp_client_messages.vader3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_client_messages.vader b/test/lsp/test_lsp_client_messages.vader
index 4d897b51..077a4c91 100644
--- a/test/lsp/test_lsp_client_messages.vader
+++ b/test/lsp/test_lsp_client_messages.vader
@@ -36,6 +36,9 @@ Given typescript(A TypeScript file with 3 lines):
bar()
baz()
+Execute(ale#util#GetBufferContents() should return correctly formatted newlines):
+ AssertEqual "foo()\nbar()\nbaz()\n", ale#util#GetBufferContents(bufnr(''))
+
Execute(ale#lsp#message#DidOpen() should return correct messages):
let g:ale_lsp_next_version_id = 12
AssertEqual