mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-09 00:15:48 -07:00
Fixes an issue on macOS Mojave that was patched in fa1c281e79.
The list of changes can be found under
build/premake/premake5/CHANGES.txt.
This was SVN commit r22021.
21 lines
529 B
Lua
21 lines
529 B
Lua
local mime = require("mime")
|
|
|
|
function test_dot(original, right)
|
|
local result, n = mime.dot(2, original)
|
|
assert(result == right, "->" .. result .. "<-")
|
|
print("ok")
|
|
end
|
|
|
|
function test_stuff(original, right)
|
|
local result, n = mime.dot(2, original)
|
|
assert(result == right, "->" .. result .. "<-")
|
|
print("ok")
|
|
end
|
|
|
|
test_dot("abc", "abc")
|
|
test_dot("", "")
|
|
test_dot("\r\n", "\r\n")
|
|
test_dot("\r\n.", "\r\n..")
|
|
test_dot(".\r\n.", "..\r\n..")
|
|
test_dot(".\r\n.", "..\r\n..")
|
|
test_dot("abcd.\r\n.", "abcd.\r\n..")
|