diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-27 12:06:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 12:06:44 +0200 |
commit | 0ff58d1bb944c9b43394ac7c83d8785c9bab6722 (patch) | |
tree | a6d05e3d36c00b6162775049442a60fc1ef6b9f8 /test | |
parent | d321deb4a9b05e9d81b79ac166274f4a6e7981bf (diff) | |
parent | 45bcf8386918bbb475fbe20c48b508aa89ed0624 (diff) | |
download | rneovim-0ff58d1bb944c9b43394ac7c83d8785c9bab6722.tar.gz rneovim-0ff58d1bb944c9b43394ac7c83d8785c9bab6722.tar.bz2 rneovim-0ff58d1bb944c9b43394ac7c83d8785c9bab6722.zip |
Merge pull request #23216 from bfredl/lpeg
refactor(build): include lpeg as a library
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/lua/vim_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/lua/vim_spec.lua b/test/functional/lua/vim_spec.lua index 53c21fd668..86eb600bd9 100644 --- a/test/functional/lua/vim_spec.lua +++ b/test/functional/lua/vim_spec.lua @@ -3031,6 +3031,15 @@ describe('lua stdlib', function() eq(false, if_nil(d, c)) eq(NIL, if_nil(a)) end) + + it('lpeg', function() + eq(5, exec_lua [[ + local m = vim.lpeg + return m.match(m.R'09'^1, '4504ab') + ]]) + + eq(4, exec_lua [[ return vim.re.match("abcde", '[a-c]+') ]]) + end) end) describe('lua: builtin modules', function() |