# HG changeset patch # User Matthew Wild # Date 1226275246 0 # Node ID c48dbfa6b1a6716294a58a98b5030d153809fa41 # Parent 6f4e9911c7d147cd8ccf4ec16adf74d0621ce1f2 Renamed some of the variables in jid.split test to make it clearer diff -r 6f4e9911c7d1 -r c48dbfa6b1a6 tests/test_util_jid.lua --- a/tests/test_util_jid.lua Sun Nov 09 23:58:19 2008 +0000 +++ b/tests/test_util_jid.lua Mon Nov 10 00:00:46 2008 +0000 @@ -1,10 +1,10 @@ function split(split) - function test(jid, node, server, resource) - local rnode, rserver, rresource = split(jid); - assert_equal(node, rnode, "split("..tostring(jid)..") failed"); - assert_equal(server, rserver, "split("..tostring(jid)..") failed"); - assert_equal(resource, rresource, "split("..tostring(jid)..") failed"); + 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"); + assert_equal(expected_resource, rresource, "split("..tostring(input_jid)..") failed"); end test("node@server", "node", "server", nil ); test("node@server/resource", "node", "server", "resource" );