summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_mcsc_handler.vader5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/handler/test_mcsc_handler.vader b/test/handler/test_mcsc_handler.vader
index 6d6c4bad..8ae47357 100644
--- a/test/handler/test_mcsc_handler.vader
+++ b/test/handler/test_mcsc_handler.vader
@@ -4,6 +4,7 @@ Before:
unlet! g:ale_cs_mcsc_source
call ale#test#SetDirectory('/testplugin/test/handler')
+ call ale#test#SetFilename('Test.cs')
runtime ale_linters/cs/mcsc.vim
@@ -25,7 +26,7 @@ Execute(The mcs handler should work with the default of the buffer's directory):
\ 'filename': ale#path#Simplify(g:dir . '/Test.cs'),
\ },
\ ],
- \ ale_linters#cs#mcsc#Handle(347, [
+ \ ale_linters#cs#mcsc#Handle(bufnr(''), [
\ 'Test.cs(12,29): error CS1001: ; expected',
\ 'Compilation failed: 2 error(s), 1 warnings',
\ ])
@@ -60,7 +61,7 @@ Execute(The mcs handler should handle cannot find symbol errors):
\ 'filename': ale#path#Simplify('/home/foo/project/bar/Test.cs'),
\ },
\ ],
- \ ale_linters#cs#mcsc#Handle(347, [
+ \ ale_linters#cs#mcsc#Handle(bufnr(''), [
\ 'Test.cs(12,29): error CS1001: ; expected',
\ 'Test.cs(101,0): error CS1028: Unexpected processor directive (no #if for this #endif)',
\ 'Test.cs(10,12): warning CS0123: some warning',