diff options
Diffstat (limited to 'lockfiles_test.lua')
| -rwxr-xr-x | lockfiles_test.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lockfiles_test.lua b/lockfiles_test.lua new file mode 100755 index 0000000..a393f60 --- /dev/null +++ b/lockfiles_test.lua @@ -0,0 +1,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() |
