Add a couple more tests for jid.split
authorMatthew Wild <mwild1@gmail.com>
Fri, 5 Dec 2008 02:02:40 +0000 (02:02 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 5 Dec 2008 02:02:40 +0000 (02:02 +0000)
tests/test_util_jid.lua

index b2cf546036a687f8d68ec2f43308b7f74bf47481..98c85f4aba05c209bd63a698736dcdc85bb5daae 100644 (file)
@@ -33,6 +33,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)