All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 Describe lsp#utils#buffer
14 Describe lsp#utils#buffer#_get_lines
15 It adds a blank line when nobinary and fixendofline are set
16 if !exists('+fixendofline')
17 Skip This test requires 'fixendofline'
21 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar', ''])
24 It adds a blank line when nobinary, nofixendofline, and endofline are set
25 if !exists('+fixendofline')
26 Skip This test requires 'fixendofline'
31 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar', ''])
34 It adds a blank line when binary and endofline are set
35 if !exists('+fixendofline')
36 Skip This test requires 'fixendofline'
40 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar', ''])
43 It does not add a blank line when nobinary, nofixendofline, and noendofline are set
44 if !exists('+fixendofline')
45 Skip This test requires 'fixendofline'
50 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar'])
53 It does not add a blank line when binary and noendofline are set
54 if !exists('+fixendofline')
55 Skip This test requires 'fixendofline'
59 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar'])
62 It adds a blank line when nobinary is set
63 if exists('+fixendofline')
64 Skip This test is not for 'fixendofline'
67 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar', ''])
70 It adds a blank line when binary and endofline are set
71 if exists('+fixendofline')
72 Skip This test is not for 'fixendofline'
76 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar', ''])
79 It does not add a blank line when binary and noendofline are set
80 if exists('+fixendofline')
81 Skip This test is not for 'fixendofline'
85 Assert Equals(lsp#utils#buffer#_get_lines(bufnr('$')), ['foo', 'bar'])
89 Describe lsp#utils#buffer#get_indent_size
90 It gets shiftwidth if set
93 Assert Equals(lsp#utils#buffer#get_indent_size(bufnr('$')), 4)
95 It gets tabstop if shiftwidth not set
98 Assert Equals(lsp#utils#buffer#get_indent_size(bufnr('$')), 12)