+-- Prosody IM
+-- Copyright (C) 2008-2009 Matthew Wild
+-- Copyright (C) 2008-2009 Waqas Hussain
+--
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
+
function split(split)
function test(input_jid, expected_node, expected_server, expected_resource)
test(nil, nil, nil , nil );
test("node@/server", nil, nil, nil , nil );
+ test("@server", nil, nil, nil , nil );
+ test("@server/resource",nil,nil,nil, nil );
end
function bare(bare)