mirror of
https://github.com/dense-analysis/ale
synced 2024-12-22 22:23:43 +00:00
17 lines
461 B
Plaintext
17 lines
461 B
Plaintext
|
Before:
|
||
|
let g:ale_some_variable = 'abc'
|
||
|
|
||
|
After:
|
||
|
unlet! g:ale_some_variable
|
||
|
|
||
|
Execute(ale#Var should return global variables):
|
||
|
AssertEqual 'abc', ale#Var(bufnr(''), 'some_variable')
|
||
|
|
||
|
Execute(ale#Var should return buffer overrides):
|
||
|
let b:ale_some_variable = 'def'
|
||
|
|
||
|
AssertEqual 'def', ale#Var(bufnr(''), 'some_variable')
|
||
|
|
||
|
Execute(ale#Var should throw exceptions for undefined variables):
|
||
|
AssertThrows call ale#Var(bufnr(''), 'undefined_variable_name')
|