From e1a0781f9de7d90554ea572cd220d72f823be3dc Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Tue, 14 Mar 2023 16:55:28 -0400 Subject: 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 --- test/lsp/test_lsp_client_messages.vader | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/lsp') 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 -- cgit v1.2.3