]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: should be better using assert_match for popup title string comparison
authorshane.xb.qian <shane.qian@foxmail.com>
Wed, 15 Mar 2023 00:05:00 +0000 (08:05 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Wed, 15 Mar 2023 00:05:00 +0000 (08:05 +0800)
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
test/unit_tests.vim

index d3d0d45216dbc53df2159ba59bb8bd8e7ba39bf1..6971783884d4cf19393b31a21a216d22801b1358 100644 (file)
@@ -241,7 +241,7 @@ def Test_LspShowReferences()
   var filePopupAttrs = ids[0]->popup_getoptions()
   var refPopupAttrs = ids[1]->popup_getoptions()
   assert_match('Xtest', filePopupAttrs.title)
-  assert_equal('References', refPopupAttrs.title)
+  assert_match('References', refPopupAttrs.title)
   assert_equal(10, line('.', ids[0]))
   assert_equal(3, line('$', ids[1]))
   feedkeys("jj\<CR>", 'xt')