diff options
author | Marvin W <git@larma.de> | 2019-12-25 18:17:23 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-12-25 19:56:51 +0100 |
commit | 11a118d53d4ef9c27c096b8c9c15dfeb4cb41e03 (patch) | |
tree | e2c1fe497ba6eefec909f2a0e839c5feef4dd0bd /xmpp-vala/tests | |
parent | 4197b589d02f284a4ecf2a6d1bcb8c60e0e83861 (diff) | |
download | dino-11a118d53d4ef9c27c096b8c9c15dfeb4cb41e03.tar.gz dino-11a118d53d4ef9c27c096b8c9c15dfeb4cb41e03.zip |
Fix issues in ICU usage
Diffstat (limited to 'xmpp-vala/tests')
-rw-r--r-- | xmpp-vala/tests/jid.vala | 7 |
1 files changed, 4 insertions, 3 deletions
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)"); } } } |