Debian Codegraph @

texk/web2c/luatexdir/luasocket/test/stufftest.lua

raw symbols SCIP
1 local mime = require("mime")
2
3 function test_dot(original, right)
4 local result, n = mime.dot(2, original)
5 assert(result == right, "->" .. result .. "<-")
6 print("ok")
7 end
8
9 function test_stuff(original, right)
10 local result, n = mime.dot(2, original)
11 assert(result == right, "->" .. result .. "<-")
12 print("ok")
13 end
14
15 test_dot("abc", "abc")
16 test_dot("", "")
17 test_dot("\r\n", "\r\n")
18 test_dot("\r\n.", "\r\n..")
19 test_dot(".\r\n.", "..\r\n..")
20 test_dot(".\r\n.", "..\r\n..")
21 test_dot("abcd.\r\n.", "abcd.\r\n..")