addressing missing docs + cleaning up older Dhall files

This commit is contained in:
toastal
2020-09-14 09:20:53 +07:00
parent b32954a46c
commit ed47008710
9 changed files with 20 additions and 67 deletions

View File

@@ -1,11 +0,0 @@
Before:
call ale#assert#SetUpFixerTest('dhall', 'dhall')
After:
call ale#assert#TearDownFixerTest()
Execute(The default command should be correct):
AssertFixer
\ { 'read_temporary_file': 1,
\ 'command': ale#Escape('dhall') . ' format --inplace %t'
\ }

View File

@@ -6,22 +6,19 @@ Before:
let g:ale_dhall_executable = 'odd-dhall'
let g:ale_dhall_options = '--ascii'
call ale#test#SetDirectory('/testplugin/test/dhall')
call ale#assert#SetUpFixerTest('dhall-format', 'dhall-format')
After:
Restore
call ale#test#RestoreDirectory()
call ale#assert#TearDownFixerTest()
Execute(The dhall-format callback should return the correct options):
call ale#test#SetFilename('../dhall_files/testfile.dhall')
AssertEqual
AssertFixer
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
\ . ' format'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
\ },
\ ale#fixers#dhall_format#Fix(bufnr(''))
\ }

View File

@@ -7,17 +7,13 @@ Before:
let g:ale_dhall_options = '--ascii'
let g:ale_dhall_freeze_options = '--all'
call ale#test#SetDirectory('/testplugin/test/dhall')
call ale#assert#SetUpFixerTest('dhall-freeze', 'dhall-freeze')
After:
Restore
call ale#test#RestoreDirectory()
call ale#assert#TearDownFixerTest()
Execute(The dhall-freeze callback should return the correct options):
call ale#test#SetFilename('../dhall_files/testfile.dhall')
AssertEqual
AssertFixer
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
@@ -25,5 +21,4 @@ Execute(The dhall-freeze callback should return the correct options):
\ . ' --all'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
\ },
\ ale#fixers#dhall_freeze#Freeze(bufnr(''))
\ }

View File

@@ -6,22 +6,17 @@ Before:
let g:ale_dhall_executable = 'odd-dhall'
let g:ale_dhall_options = '--ascii'
call ale#test#SetDirectory('/testplugin/test/dhall')
call ale#assert#SetUpFixerTest('dhall-lint', 'dhall-lint')
After:
Restore
call ale#test#RestoreDirectory()
call ale#assert#TearDownFixerTest()
Execute(The dhall-lint callback should return the correct options):
call ale#test#SetFilename('../dhall_files/testfile.dhall')
AssertEqual
AssertFixer
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
\ . ' lint'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
\ },
\ ale#fixers#dhall_lint#Fix(bufnr(''))
\ }