Changeset

240:c48dbfa6b1a6

Renamed some of the variables in jid.split test to make it clearer
author Matthew Wild <mwild1@gmail.com>
date Mon, 10 Nov 2008 00:00:46 +0000
parents 239:6f4e9911c7d1
children 241:021ccf988f3b 246:0904fd197cbe 279:76bad8b64018
files tests/test_util_jid.lua
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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"	);