diff options
author | Marvin W <git@larma.de> | 2019-12-23 04:01:25 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-12-23 16:58:55 +0100 |
commit | 53d467938cb1d3fb73bab3707319bc740eda9b10 (patch) | |
tree | 2583b6f7abaae2a87a619ba24fa4adc1d1f5f8ae /xmpp-vala/tests | |
parent | a0a956ee0878d24bd06be7f5d75dc4ccd4e7901d (diff) | |
download | dino-53d467938cb1d3fb73bab3707319bc740eda9b10.tar.gz dino-53d467938cb1d3fb73bab3707319bc740eda9b10.zip |
Use UTS46 instead of IDNA2003
Diffstat (limited to 'xmpp-vala/tests')
-rw-r--r-- | xmpp-vala/tests/jid.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp-vala/tests/jid.vala b/xmpp-vala/tests/jid.vala index 8928dc97..75eb38ce 100644 --- a/xmpp-vala/tests/jid.vala +++ b/xmpp-vala/tests/jid.vala @@ -9,11 +9,11 @@ class JidTest : Gee.TestCase { add_test("jid_valid_domain_with_resource", () => { test_jid_valid("example.com/test"); }); add_test("jid_valid_full", () => { test_jid_valid("test@example.com/test"); }); - // Should those actually be valid? + // These should not be valid in "strict-mode" add_test("jid_valid_emoji_local", () => { test_jid_valid("😅@example.com"); }); add_test("jid_valid_emoji_resource", () => { test_jid_valid("test@example.com/😅"); }); + add_test("jid_valid_emoji_domain", () => { test_jid_valid("test@😅.com"); }); - add_test("jid_invalid_emoji_domain", () => { test_jid_invalid("test@😅.com"); }); add_test("jid_invalid_bidi_local", () => { test_jid_invalid("test@example.com"); }); add_test("jid_invalid_bidi_resource", () => { test_jid_invalid("test@example.com/test"); }); add_test("jid_invalid_bidi_domain", () => { test_jid_invalid("test@example.com"); }); @@ -43,7 +43,7 @@ class JidTest : Gee.TestCase { try { new Jid(jid); } catch (Error e) { - fail_if_reached(); + fail_if_reached(@"Throws $(e.message)"); } } |