diff options
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r-- | server/test/completion/init.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index df2b9c80..96a12032 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -67,8 +67,12 @@ function TEST(script) local vm = matcher.vm(ast) assert(vm) local result = matcher.completion(vm, pos) - assert(result) - assert(eq(expect, result)) + if expect then + assert(result) + assert(eq(expect, result)) + else + assert(result == nil) + end end end @@ -257,4 +261,9 @@ xxx() }, } +TEST [[ +(''):@ +]] +(EXISTS) + --TEST 'local s = "a:@"' (nil) TODO |