Merge pull request #2053 from andreypopp/fix-ocamlformat-stdin-stdout

Make ocamlformat work without temporary files
This commit is contained in:
w0rp
2018-11-10 10:57:11 +00:00
committed by GitHub
2 changed files with 7 additions and 9 deletions

View File

@@ -18,10 +18,9 @@ Execute(The ocamlformat callback should return the correct default values):
AssertEqual
\ {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('xxxinvalid')
\ . ' --inplace'
\ . ' %t',
\ . ' --name=' . ale#Escape(bufname(bufnr('')))
\ . ' -',
\ },
\ ale#fixers#ocamlformat#Fix(bufnr(''))
@@ -31,10 +30,9 @@ Execute(The ocamlformat callback should include custom ocamlformat options):
AssertEqual
\ {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('xxxinvalid')
\ . ' ' . g:ale_ocaml_ocamlformat_options
\ . ' --inplace'
\ . ' %t',
\ . ' --name=' . ale#Escape(bufname(bufnr('')))
\ . ' -',
\ },
\ ale#fixers#ocamlformat#Fix(bufnr(''))