blob: a393f60d8599aa02939cb2d717df3cf61d8d489b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env lua5.4
local lockfiles = dofile('lockfiles.lua')
local lunatest = require('lunatest')
function test_percentage_escape() -- luacheck: ignore 111
local lock_file_path_with_percent = lockfiles.lock_file_path('.', 'foo%bar')
local lock_file_path_with_slash = lockfiles.lock_file_path('.', 'foo/bar')
lunatest.assert_not_equal(lock_file_path_with_percent, lock_file_path_with_slash)
end
lunatest.run()
|