#3633 - Put all dummy test files in test/test-files

This commit is contained in:
w0rp
2021-03-20 22:11:22 +00:00
parent 3838ae118d
commit b1d833417b
581 changed files with 1027 additions and 1123 deletions

View File

@@ -3,7 +3,7 @@ Before:
runtime ale_linters/java/javac.vim
Save $PATH
let $PATH = ale#path#Simplify(g:dir . '/ant-test-files/bin')
let $PATH = ale#path#Simplify(g:dir . '/test-files/ant/bin')
After:
Restore
@@ -12,16 +12,16 @@ After:
call ale#linter#Reset()
Execute(Should return `cd '[dir]' && 'ant' classpath -S -q`):
call ale#test#SetFilename('ant-test-files/ant-project/Main.java')
call ale#test#SetFilename('test-files/ant/ant-project/Main.java')
AssertEqual
\ [
\ ale#path#Simplify(g:dir . '/ant-test-files/ant-project'),
\ ale#path#Simplify(g:dir . '/test-files/ant/ant-project'),
\ ale#Escape('ant') . ' classpath' . ' -S' . ' -q',
\ ],
\ ale#ant#BuildClasspathCommand(bufnr(''))
Execute(Should return empty string if ant cannot be executed):
call ale#test#SetFilename('ant-test-files/not-an-ant-project/Main.java')
call ale#test#SetFilename('test-files/ant/not-an-ant-project/Main.java')
AssertEqual ['', ''], ale#ant#BuildClasspathCommand(bufnr(''))