Commit c4451fe0 authored by François Perrad's avatar François Perrad
Browse files

fix test of searchpath when running out-the-source

parent a0532c5f
Pipeline #434670 passed with stages
in 25 seconds
......@@ -130,8 +130,9 @@ end
-- searchpath
if has_searcherpath then
local p = package.searchpath('test_assertion', '?.lua')
equals(p, "test_assertion.lua", "searchpath")
local p = package.searchpath('test_assertion', package.path)
is_string(p, "searchpath")
matches(p, "test_assertion.lua$", "searchpath")
p = package.searchpath('test_assertion', 'bad path')
is_nil(p)
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment