diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/definition.lua | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index b0cc232f..f44633e1 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -869,10 +869,10 @@ print(t.<?x?>) } local originRuntimePath = config.get 'Lua.runtime.path' + config.set('Lua.runtime.path', { './?.lua' }) - TEST { { path = 'a.lua', @@ -891,4 +891,25 @@ print(t.<?x?>) } } +--config.set('Lua.runtime.path', { +-- '/home/?.lua' +--}) +--TEST { +-- { +-- path = '/home/a.lua', +-- content = [[ +--return { +-- <!x!> = 1, +--} +--]], +-- }, +-- { +-- path = 'b.lua', +-- content = [[ +--local t = require 'a' +--print(t.<?x?>) +-- ]] +-- } +--} + config.set('Lua.runtime.path', originRuntimePath) |