summaryrefslogtreecommitdiff
path: root/test/basic/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/basic/init.lua')
-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 = "",
+ },
+}