diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ale_var.vader | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ale_var.vader b/test/test_ale_var.vader index aee8e048..576b403f 100644 --- a/test/test_ale_var.vader +++ b/test/test_ale_var.vader @@ -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') |