fix testcase

This commit is contained in:
paihu
2018-10-22 22:59:06 +09:00
parent 0261dd2f51
commit 2ea83939a5
20 changed files with 72 additions and 72 deletions

View File

@@ -5,43 +5,43 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The mcsc linter should return the correct default command):
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The options should be be used in the command):
let g:ale_cs_mcsc_options = '-pkg:dotnet'
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe -pkg:dotnet -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The souce path should be be used in the command):
let g:ale_cs_mcsc_source = '../foo/bar'
AssertLinter 'mcs', 'cd ' . ale#Escape('../foo/bar') . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape('../foo/bar'))
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The list of search pathes for assemblies should be be used in the command if not empty):
let g:ale_cs_mcsc_assembly_path = ['/usr/lib/mono', '../foo/bar']
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe'
\ . ' -lib:' . ale#Escape('/usr/lib/mono') . ',' . ale#Escape('../foo/bar')
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
let g:ale_cs_mcsc_assembly_path = []
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
Execute(The list of assemblies should be be used in the command if not empty):
let g:ale_cs_mcsc_assemblies = ['foo.dll', 'bar.dll']
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe'
\ . ' -r:' . ale#Escape('foo.dll') . ',' . ale#Escape('bar.dll')
\ . ' -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')
let g:ale_cs_mcsc_assemblies = []
AssertLinter 'mcs', 'cd ' . ale#Escape(g:dir) . ' && '
AssertLinter 'mcs', ale#path#CdString(ale#Escape(g:dir))
\ . 'mcs -unsafe -out:TEMP -t:module -recurse:' . ale#Escape('*.cs')