blob: 728c02edaefcf830fb817e51870736ae79ddfa51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Before:
Save g:ale_haskell_fourmolu_executable
Save g:ale_haskell_fourmolu_options
After:
Restore
Execute(The fourmolu callback should return the correct default values):
AssertEqual
\ {
\ 'command': ale#Escape('fourmolu')
\ . ' --stdin-input-file '
\ . ale#Escape(@%)
\ },
\ ale#fixers#fourmolu#Fix(bufnr(''))
Execute(The fourmolu executable and options should be configurable):
let g:ale_haskell_fourmolu_executable = '/path/to/fourmolu'
let g:ale_haskell_fourmolu_options = '-h'
AssertEqual
\ {
\ 'command': ale#Escape('/path/to/fourmolu')
\ . ' -h'
\ . ' --stdin-input-file '
\ . ale#Escape(@%)
\ },
\ ale#fixers#fourmolu#Fix(bufnr(''))
|