diff options
Diffstat (limited to 'test/crossfile/definition.lua')
-rw-r--r-- | test/crossfile/definition.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index b233141c..058f5d18 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -117,6 +117,31 @@ TEST { }, } +config.set('Lua.runtime.pathStrict', true) +TEST { + { + path = 'aaa/bbb.lua', + content = '', + }, + { + path = 'b.lua', + content = 'require "<?bbb?>"', + }, +} + +TEST { + { + path = 'aaa/bbb.lua', + content = '<!!>', + }, + { + path = 'b.lua', + content = 'require "<?aaa.bbb?>"', + }, +} + +config.set('Lua.runtime.pathStrict', false) + TEST { { path = 'a.lua', |