net.httpserver, net.http: Update for new net.server API (untested)
[prosody.git] / tests / test_util_jid.lua
index 7a6160088d42417bb27866bb00205ca1462aa1da..fe6ec74e13a006352b0e160f1963082165a5e47c 100644 (file)
@@ -1,3 +1,12 @@
+-- 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)
@@ -13,6 +22,8 @@ function split(split)
        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)