summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-23 17:07:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-23 17:07:24 +0800
commit66b68f8453d98dbb3197926e0ad96764a4513ca2 (patch)
treefb88fef20b52adf114627ffae52873514b906ec3 /test
parentee20f068952aa4586e2976234aafd68d27190ec2 (diff)
downloadlua-language-server-66b68f8453d98dbb3197926e0ad96764a4513ca2.zip
only check one result
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/diagnostic.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/crossfile/diagnostic.lua b/test/crossfile/diagnostic.lua
index 3d4eb552..a430cb4e 100644
--- a/test/crossfile/diagnostic.lua
+++ b/test/crossfile/diagnostic.lua
@@ -135,3 +135,22 @@ TEST {
content = 'require "f.a"',
},
}
+
+TEST {
+ {
+ path = 'a/init.lua',
+ content = '',
+ },
+ {
+ path = 'f/a.lua',
+ content = '',
+ },
+ {
+ path = 'b.lua',
+ content = 'require "a"',
+ },
+ {
+ path = 'c.lua',
+ content = 'require "f.a"',
+ },
+}