spec/util_jid_spec.lua
changeset 12774 249bf1a53866
parent 12771 3b75943fa5c1
equal deleted inserted replaced
12773:27e1d4354274 12774:249bf1a53866
    81 		it("should strip empty root label", function ()
    81 		it("should strip empty root label", function ()
    82 			test("node@server.", "node", "server", nil);
    82 			test("node@server.", "node", "server", nil);
    83 		end);
    83 		end);
    84 		it("should fail for JIDs that fail stringprep", function ()
    84 		it("should fail for JIDs that fail stringprep", function ()
    85 			test("node@invalid-\128-server", nil, nil, nil);
    85 			test("node@invalid-\128-server", nil, nil, nil);
       
    86 			test("node@invalid-\194\128-server", nil, nil, nil);
    86 			test("<invalid node>@server", nil, nil, nil);
    87 			test("<invalid node>@server", nil, nil, nil);
    87 			test("node@server/invalid-\000-resource", nil, nil, nil);
    88 			test("node@server/invalid-\000-resource", nil, nil, nil);
    88 		end);
    89 		end);
    89 	end);
    90 	end);
    90 
    91