aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-10 00:00:46 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-10 00:00:46 +0000
commiteea12d2279cd8f1e41c9234430e961754be6ce76 (patch)
tree267a64b9e5322a1604022c73d27425f7676f8ea3 /tests
parentdfe7f483e474b7f37a577904c318b4389bd1fd90 (diff)
downloadprosody-eea12d2279cd8f1e41c9234430e961754be6ce76.tar.gz
prosody-eea12d2279cd8f1e41c9234430e961754be6ce76.zip
Renamed some of the variables in jid.split test to make it clearer
Diffstat (limited to 'tests')
-rw-r--r--tests/test_util_jid.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_util_jid.lua b/tests/test_util_jid.lua
index 58fadbb7..1dbd72b7 100644
--- a/tests/test_util_jid.lua
+++ b/tests/test_util_jid.lua
@@ -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" );