util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas)
authorMatthew Wild <mwild1@gmail.com>
Tue, 11 Oct 2022 15:41:05 +0100
changeset 12774 249bf1a53866
parent 12773 27e1d4354274
child 12775 e9fcc69ea508
util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas)
spec/util_jid_spec.lua
--- a/spec/util_jid_spec.lua	Tue Oct 11 13:35:09 2022 +0100
+++ b/spec/util_jid_spec.lua	Tue Oct 11 15:41:05 2022 +0100
@@ -83,6 +83,7 @@
 		end);
 		it("should fail for JIDs that fail stringprep", function ()
 			test("node@invalid-\128-server", nil, nil, nil);
+			test("node@invalid-\194\128-server", nil, nil, nil);
 			test("<invalid node>@server", nil, nil, nil);
 			test("node@server/invalid-\000-resource", nil, nil, nil);
 		end);