test_util_jid: make function test() local [luacheck]
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 8 Jul 2016 16:56:32 +0000 (00:56 +0800)
committerAnton Shestakov <av6@dwimlabs.net>
Fri, 8 Jul 2016 16:56:32 +0000 (00:56 +0800)
tests/test_util_jid.lua

index c697e63f5c33c85f66374092f52ad8a78a555fbe..0ac5827e14cee5328d8b768b83f1073ac47b0b75 100644 (file)
@@ -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");