aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/assert_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-24 16:20:19 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-02-28 18:21:08 +0800
commit6750d00fe96a04ab19cfc55fb406f6b40dbf970f (patch)
tree1cce38d22bbaccd9d250db074d7c3ba236526ce2 /test/functional/legacy/assert_spec.lua
parenta3a9f86d4a11029542a94b00044b5a181a68c9cd (diff)
downloadrneovim-6750d00fe96a04ab19cfc55fb406f6b40dbf970f.tar.gz
rneovim-6750d00fe96a04ab19cfc55fb406f6b40dbf970f.tar.bz2
rneovim-6750d00fe96a04ab19cfc55fb406f6b40dbf970f.zip
vim-patch:8.2.4603: sourcing buffer lines is too complicated
Problem: Sourcing buffer lines is too complicated. Solution: Simplify the code. Make it possible to source Vim9 script lines. (Yegappan Lakshmanan, closes vim/vim#9974) https://github.com/vim/vim/commit/85b43c6cb7d56919e245622f4e42db6d8bee4194 This commit changes the behavior of sourcing buffer lines to always have a script ID, although sourcing the same buffer always produces the same script ID. vim-patch:9.1.0372: Calling CLEAR_FIELD() on the same struct twice Problem: Calling CLEAR_FIELD() on the same struct twice. Solution: Remove the second CLEAR_FIELD(). Move the assignment of cookie.sourceing_lnum (zeertzjq). closes: vim/vim#14627 https://github.com/vim/vim/commit/f68517c1671dfedcc1555da50bc0b3de6d2842f6 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test/functional/legacy/assert_spec.lua')
-rw-r--r--test/functional/legacy/assert_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/legacy/assert_spec.lua b/test/functional/legacy/assert_spec.lua
index 47eea5e7d5..9863d146b1 100644
--- a/test/functional/legacy/assert_spec.lua
+++ b/test/functional/legacy/assert_spec.lua
@@ -148,10 +148,10 @@ describe('assert function:', function()
call assert_true('', 'file two')
]])
expected_errors({
- 'nvim_exec2(): equal assertion failed: Expected 1 but got 100',
- "nvim_exec2(): true assertion failed: Expected False but got 'true'",
- "nvim_exec2(): false assertion failed: Expected True but got 'false'",
- "nvim_exec2(): file two: Expected True but got ''",
+ 'nvim_exec2() line 1: equal assertion failed: Expected 1 but got 100',
+ "nvim_exec2() line 2: true assertion failed: Expected False but got 'true'",
+ "nvim_exec2() line 3: false assertion failed: Expected True but got 'false'",
+ "nvim_exec2() line 1: file two: Expected True but got ''",
})
end)
end)