From 11a118d53d4ef9c27c096b8c9c15dfeb4cb41e03 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 25 Dec 2019 18:17:23 +0100 Subject: Fix issues in ICU usage --- xmpp-vala/tests/jid.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xmpp-vala/tests') diff --git a/xmpp-vala/tests/jid.vala b/xmpp-vala/tests/jid.vala index 75eb38ce..90420056 100644 --- a/xmpp-vala/tests/jid.vala +++ b/xmpp-vala/tests/jid.vala @@ -10,6 +10,7 @@ class JidTest : Gee.TestCase { add_test("jid_valid_full", () => { test_jid_valid("test@example.com/test"); }); // These should not be valid in "strict-mode" + add_test("jid_valid_emoji_only", () => { test_jid_valid("😅"); }); 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"); }); @@ -66,7 +67,7 @@ class JidTest : Gee.TestCase { var t2 = new Jid(jid2); fail_if_not_eq_str(t1.to_string(), t2.to_string()); } catch (Error e) { - fail_if_reached(); + fail_if_reached(@"Throws $(e.message)"); } } @@ -75,7 +76,7 @@ class JidTest : Gee.TestCase { var t1 = new Jid(jid1); fail_if_not_eq_str(t1.to_string(), jid2); } catch (Error e) { - fail_if_reached(); + fail_if_reached(@"Throws $(e.message)"); } } @@ -85,7 +86,7 @@ class JidTest : Gee.TestCase { var t2 = new Jid(jid2); fail_if_eq_str(t1.to_string(), t2.to_string()); } catch (Error e) { - fail_if_reached(); + fail_if_reached(@"Throws $(e.message)"); } } } -- cgit v1.2.3-70-g09d2