mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
#427 Output buffer variables when buffer numbers are strings
This commit is contained in:
1 parent
6853d2c304
commit
447917e348
2 files changed
+6
-1
No files matched your search
@@ -12,5 +12,10 @@ Execute(ale#Var should return buffer overrides):
|
||||
|
||||
AssertEqual 'def', ale#Var(bufnr(''), 'some_variable')
|
||||
|
||||
Execute(ale#Var should return buffer overrides for buffer numbers as strings):
|
||||
let b:ale_some_variable = 'def'
|
||||
|
||||
AssertEqual 'def', ale#Var(string(bufnr('')), 'some_variable')
|
||||
|
||||
Execute(ale#Var should throw exceptions for undefined variables):
|
||||
AssertThrows call ale#Var(bufnr(''), 'undefined_variable_name')
|
||||
Reference in new issue
Block a user