diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-22 15:37:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 15:37:32 +0800 |
commit | a41883bfbea990c9f8b29060b21580139970afc1 (patch) | |
tree | 2307ef0909d76ee6c9eb377d8182964c605ddb9d /test/functional/api/extmark_spec.lua | |
parent | 43e76cc3462bc5bcf2b6ade8af1c36e21d3da3c9 (diff) | |
parent | a9cd8467cbd54035e7814b862054c828467c2ce2 (diff) | |
download | rneovim-a41883bfbea990c9f8b29060b21580139970afc1.tar.gz rneovim-a41883bfbea990c9f8b29060b21580139970afc1.tar.bz2 rneovim-a41883bfbea990c9f8b29060b21580139970afc1.zip |
Merge pull request #24098 from zeertzjq/fix-extmark
Fix two extmark bugs
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 675c8332de..ec1c9245ba 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -105,6 +105,10 @@ describe('API/extmarks', function() it('validation', function() eq("Invalid 'end_col': expected Integer, got Array", pcall_err(set_extmark, ns, marks[2], 0, 0, { end_col = {}, end_row = 1 })) eq("Invalid 'end_row': expected Integer, got Array", pcall_err(set_extmark, ns, marks[2], 0, 0, { end_col = 1, end_row = {} })) + eq("Invalid 'virt_text_pos': expected String, got Integer", pcall_err(set_extmark, ns, marks[2], 0, 0, { virt_text_pos = 0 })) + eq("Invalid 'virt_text_pos': 'foo'", pcall_err(set_extmark, ns, marks[2], 0, 0, { virt_text_pos = 'foo' })) + eq("Invalid 'hl_mode': expected String, got Integer", pcall_err(set_extmark, ns, marks[2], 0, 0, { hl_mode = 0 })) + eq("Invalid 'hl_mode': 'foo'", pcall_err(set_extmark, ns, marks[2], 0, 0, { hl_mode = 'foo' })) eq("Invalid 'id': expected positive Integer", pcall_err(set_extmark, ns, {}, 0, 0, { end_col = 1, end_row = 1 })) eq("Invalid mark position: expected 2 Integer items", pcall_err(get_extmarks, ns, {}, {-1, -1})) eq("Invalid mark position: expected mark id Integer or 2-item Array", pcall_err(get_extmarks, ns, true, {-1, -1})) |