summaryrefslogtreecommitdiff
path: root/test/test_ale_var.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-27 00:15:16 +0100
committerw0rp <devw0rp@gmail.com>2017-04-27 00:15:16 +0100
commit447917e3485ae6ff17e6dbc6d21be351cd152753 (patch)
tree00bb4752537b9df0b0462af36b0a9b1bc5dcf77f /test/test_ale_var.vader
parent6853d2c304e5eae22393208f91b0d072d2f22d74 (diff)
downloadale-447917e3485ae6ff17e6dbc6d21be351cd152753.zip
#427 Output buffer variables when buffer numbers are strings
Diffstat (limited to 'test/test_ale_var.vader')
-rw-r--r--test/test_ale_var.vader5
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')