From: Anton Shestakov Date: Fri, 8 Jul 2016 16:56:32 +0000 (+0800) Subject: test_util_jid: make function test() local [luacheck] X-Git-Url: https://git.enpas.org/?p=prosody.git;a=commitdiff_plain;h=d8acc0706930d8b7339c2f600192b4607b25fd4d test_util_jid: make function test() local [luacheck] --- diff --git a/tests/test_util_jid.lua b/tests/test_util_jid.lua index c697e63f..0ac5827e 100644 --- a/tests/test_util_jid.lua +++ b/tests/test_util_jid.lua @@ -19,7 +19,7 @@ end function split(split) - function test(input_jid, expected_node, expected_server, expected_resource) + local function test(input_jid, expected_node, expected_server, expected_resource) local rnode, rserver, rresource = split(input_jid); assert_equal(expected_node, rnode, "split("..tostring(input_jid)..") failed"); assert_equal(expected_server, rserver, "split("..tostring(input_jid)..") failed");