summaryrefslogtreecommitdiff
path: root/test/basic
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-11 21:12:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-11 21:12:08 +0800
commit9828b5e6e0c513dc20f756db1350aa6e38faa5b7 (patch)
treeee6f406dcbb83f35c21a5042de33ac7ec2835a60 /test/basic
parent228613899d6d0562c1cd639e69c796fa65c2636d (diff)
downloadlua-language-server-9828b5e6e0c513dc20f756db1350aa6e38faa5b7.zip
some fix
Diffstat (limited to 'test/basic')
-rw-r--r--test/basic/init.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/basic/init.lua b/test/basic/init.lua
index 5e55c724..a3a11f62 100644
--- a/test/basic/init.lua
+++ b/test/basic/init.lua
@@ -172,3 +172,48 @@ end
text = "p",
},
}
+
+TEST [[
+print(12345)
+]] [[
+print(123
+45)
+]] {
+ [1] = {
+ range = {
+ ["end"] = {
+ character = 9,
+ line = 0,
+ },
+ start = {
+ character = 9,
+ line = 0,
+ },
+ },
+ rangeLength = 0,
+ text = "\
+",
+ },
+}
+
+TEST [[
+print(123
+45)
+]] [[
+print(12345)
+]] {
+ [1] = {
+ range = {
+ ["end"] = {
+ character = 0,
+ line = 1,
+ },
+ start = {
+ character = 9,
+ line = 0,
+ },
+ },
+ rangeLength = 2,
+ text = "",
+ },
+}