From a574fd99252b612542eca588fb093d20d8ce9ea9 Mon Sep 17 00:00:00 2001 From: "shane.xb.qian" Date: Sun, 1 Sep 2024 05:57:09 +0800 Subject: [PATCH] fix: adjust test Signed-off-by: shane.xb.qian --- test/clangd_tests.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/clangd_tests.vim b/test/clangd_tests.vim index b084e861..645c7d1f 100644 --- a/test/clangd_tests.vim +++ b/test/clangd_tests.vim @@ -901,7 +901,11 @@ def g:Test_LspSelection() assert_equal([4, 30, 6, 5], [line("'<"), col("'<"), line("'>"), col("'>")]) cursor(5, 8) normal vlelelelelelsy - assert_equal([4, 5, 6, 5], [line("'<"), col("'<"), line("'>"), col("'>")]) + if clangdVerMajor > 14 + assert_equal([4, 5, 6, 5], [line("'<"), col("'<"), line("'>"), col("'>")]) + else + assert_equal([4, 30, 6, 5], [line("'<"), col("'<"), line("'>"), col("'>")]) + endif cursor(5, 8) normal vlelelelelelelsy assert_equal([2, 1, 8, 1], [line("'<"), col("'<"), line("'>"), col("'>")])