diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-10-11 10:22:38 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-10-11 10:22:38 +0800 |
commit | e574b0b2ef33e8f456abe7d5c48c925701c9df8f (patch) | |
tree | 92eeccaa3445934e5dc6bf40684dad57a52f4b80 /test/definition | |
parent | f156994cb041cc9022e5af5cf9628a3a97119347 (diff) | |
download | lua-language-server-e574b0b2ef33e8f456abe7d5c48c925701c9df8f.zip |
区分错误原因
Diffstat (limited to 'test/definition')
-rw-r--r-- | test/definition/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua index 85d5b820..14efa03f 100644 --- a/test/definition/init.lua +++ b/test/definition/init.lua @@ -6,7 +6,8 @@ local function test(script) local pos = script:find('<?', 1, true) + 2 local new_script = script:gsub('<[!?]', ' '):gsub('[!?]>', ' ') - local a, b = matcher.definition(new_script, pos) + local suc, a, b = matcher.definition(new_script, pos) + assert(suc) assert(a == start) assert(b == finish) end |