summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/command/auto-require.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command/auto-require.lua b/test/command/auto-require.lua
index c2c0935f..8543a6ab 100644
--- a/test/command/auto-require.lua
+++ b/test/command/auto-require.lua
@@ -70,4 +70,22 @@ local aaaaaa = require 'aaa'
text = 'local test = require \'test\'\n'
}
+TEST [[
+local offset
+local space_size
+
+---@class A
+---@field a string
+---@field b string
+local M = {}
+
+---@return A
+function M.new()
+end
+]] 'test' {
+ start = 0,
+ finish = 0,
+ text = 'local test = require "test"\n'
+}
+
client.editText = originEditText