31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('pyrex', 'cython')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default cython command should be correct):
|
|
AssertLinter 'cython', ale#Escape('cython')
|
|
\ . ' --working ' . ale#Escape(g:dir)
|
|
\ . ' --include-dir ' . ale#Escape(g:dir)
|
|
\ . ' --warning-extra'
|
|
\ . ' --output-file ' . g:ale#util#nul_file . ' %t'
|
|
|
|
Execute(The cython executable should be configurable):
|
|
let b:ale_pyrex_cython_executable = 'cython_foobar'
|
|
|
|
AssertLinter 'cython_foobar', ale#Escape('cython_foobar')
|
|
\ . ' --working ' . ale#Escape(g:dir)
|
|
\ . ' --include-dir ' . ale#Escape(g:dir)
|
|
\ . ' --warning-extra'
|
|
\ . ' --output-file ' . g:ale#util#nul_file . ' %t'
|
|
|
|
Execute(Additional cython options should be configurable):
|
|
let b:ale_pyrex_cython_options = '--foobar'
|
|
|
|
AssertLinter 'cython', ale#Escape('cython')
|
|
\ . ' --working ' . ale#Escape(g:dir)
|
|
\ . ' --include-dir ' . ale#Escape(g:dir)
|
|
\ . ' --foobar'
|
|
\ . ' --output-file ' . g:ale#util#nul_file . ' %t'
|