]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Fix test failure
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 22 Jan 2022 17:12:59 +0000 (09:12 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 22 Jan 2022 17:12:59 +0000 (09:12 -0800)
test/unit_tests.vim

index bae85435af864b1877779329ef4f8290d9f4dda8..1378ef83f5a6f98760ff2db4a1b559bdf379dce0 100644 (file)
@@ -549,9 +549,9 @@ def Test_LspHighlight()
   cursor(1, 13)
   :LspHighlight
   :sleep 1
-  assert_equal([{'id': 0, 'col': 13, 'end': 1, 'type': 'LspTextRef', 'length': 3, 'start': 1}], prop_list(1))
-  assert_equal([{'id': 0, 'col': 11, 'end': 1, 'type': 'LspReadRef', 'length': 3, 'start': 1}], prop_list(3))
-  assert_equal([{'id': 0, 'col': 3, 'end': 1, 'type': 'LspWriteRef', 'length': 3, 'start': 1}], prop_list(4))
+  assert_equal([{'id': 0, 'col': 13, 'type_bufnr': 0, 'end': 1, 'type': 'LspTextRef', 'length': 3, 'start': 1}], prop_list(1))
+  assert_equal([{'id': 0, 'col': 11, 'type_bufnr': 0, 'end': 1, 'type': 'LspReadRef', 'length': 3, 'start': 1}], prop_list(3))
+  assert_equal([{'id': 0, 'col': 3, 'type_bufnr': 0, 'end': 1, 'type': 'LspWriteRef', 'length': 3, 'start': 1}], prop_list(4))
   :LspHighlightClear
   :sleep 1
   assert_equal([], prop_list(1))