mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
* Some abs paths are not recognized for win32 Paths like "c:/abc/def.cpp" were not recognized as absolute on Windows. * Fix test for mypy_handler mypy handler not just simplifies path, but tries to convert path to absolute.
47 lines
2.0 KiB
Plaintext
47 lines
2.0 KiB
Plaintext
Execute(Relative paths should be resolved correctly):
|
|
AssertEqual
|
|
\ has('win32') ? '\foo\bar\baz\whatever.txt' : '/foo/bar/baz/whatever.txt',
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', '../baz/whatever.txt')
|
|
AssertEqual
|
|
\ has('win32') ? '\foo\bar\xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', './whatever.txt')
|
|
AssertEqual
|
|
\ has('win32') ? '\foo\bar\xyz\whatever.txt' : '/foo/bar/xyz/whatever.txt',
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', 'whatever.txt')
|
|
|
|
if has('win32')
|
|
AssertEqual
|
|
\ 'C:\foo\bar\baz\whatever.txt',
|
|
\ ale#path#GetAbsPath('C:\foo\bar\baz\xyz', '../whatever.txt')
|
|
AssertEqual
|
|
\ 'C:\foo\bar\baz\whatever.txt',
|
|
\ ale#path#GetAbsPath('C:\foo\bar\baz\xyz', '..\whatever.txt')
|
|
AssertEqual
|
|
\ 'C:\foo\bar\baz\whatever.txt',
|
|
\ ale#path#GetAbsPath('C:/foo/bar/baz/xyz', '../whatever.txt')
|
|
AssertEqual
|
|
\ 'C:\foo\bar\baz\whatever.txt',
|
|
\ ale#path#GetAbsPath('C:/foo/bar/baz/xyz', '..\whatever.txt')
|
|
endif
|
|
|
|
Execute(Absolute paths should be resolved correctly):
|
|
AssertEqual
|
|
\ has('win32') ? '\ding\dong' : '/ding/dong',
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', '/ding/dong')
|
|
|
|
AssertEqual
|
|
\ has('win32') ? '\ding\dong' : '/ding/dong',
|
|
\ ale#path#GetAbsPath('/foo/bar/xyz', '//ding/dong')
|
|
|
|
if has('win32')
|
|
AssertEqual '\ding', ale#path#GetAbsPath('/foo/bar/xyz', '\\ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('/foo/bar/xyz', 'c:/ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('/foo/bar/xyz', 'c:\ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('\foo\bar\xyz', 'c:/ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('\foo\bar\xyz', 'c:\ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('c:/foo/bar/xyz', 'c:/ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('c:/foo/bar/xyz', 'c:\ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('c:\foo\bar\xyz', 'c:/ding')
|
|
AssertEqual 'c:\ding', ale#path#GetAbsPath('c:\foo\bar\xyz', 'c:\ding')
|
|
endif
|