X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/test/linter/test_nasm_nasm.vader diff --git a/.vim/bundle/ale/test/linter/test_nasm_nasm.vader b/.vim/bundle/ale/test/linter/test_nasm_nasm.vader new file mode 100644 index 00000000..ef56aa28 --- /dev/null +++ b/.vim/bundle/ale/test/linter/test_nasm_nasm.vader @@ -0,0 +1,19 @@ +Before: + call ale#assert#SetUpLinterTest('nasm', 'nasm') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default nasm command should be correct): + AssertLinter 'nasm', ale#Escape('nasm') + \ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/') + \ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null') + +Execute(The nasm executable and options should be configurable): + let b:ale_nasm_nasm_executable = '~/nasm' + let b:ale_nasm_nasm_options = '-w-macro-params' + + AssertLinter '~/nasm', ale#Escape('~/nasm') + \ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/') + \ . ' -w-macro-params' + \ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')