diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-08 15:58:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-08 15:58:37 +0800 |
commit | a30de10b76398e6e0bacd06acca32915e1447cae (patch) | |
tree | 6878d52c4a6f1035cc596e1a1ea9ccbef2eb32d5 /test | |
parent | 083656e8a1e558b5898915925d910ad035e8f615 (diff) | |
download | lua-language-server-a30de10b76398e6e0bacd06acca32915e1447cae.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/rename/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rename/init.lua b/test/rename/init.lua index 88f83269..4b10756e 100644 --- a/test/rename/init.lua +++ b/test/rename/init.lua @@ -18,7 +18,7 @@ end function TEST(oldName, newName) return function (oldScript) - return function (newScript) + return function (expectScript) files.removeAll() files.setText('', oldScript) local pos = oldScript:find('[^%w_]'..oldName..'[^%w_]') @@ -29,7 +29,7 @@ function TEST(oldName, newName) if positions then script = replace(script, positions) end - assert(script == newScript) + assert(script == expectScript) end end end |