aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/tests/common.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/tests/common.vala')
-rw-r--r--xmpp-vala/tests/common.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/tests/common.vala b/xmpp-vala/tests/common.vala
index c616d2e7..47dbce0e 100644
--- a/xmpp-vala/tests/common.vala
+++ b/xmpp-vala/tests/common.vala
@@ -72,14 +72,14 @@ bool fail_if_not_eq_str(string? left, string? right, string? reason = null) {
bool nullcheck = (left == null || right == null) && (left != null && right != null);
if (left == null) left = "(null)";
if (right == null) right = "(null)";
- return fail_if_not(!nullcheck && left == right, @"$(reason + ": " ?? "")$left != $right");
+ return fail_if_not(!nullcheck && left == right, @"$(reason + ": " ?? "")'$left' != '$right'");
}
bool fail_if_eq_str(string? left, string? right, string? reason = null) {
bool nullcheck = (left == null && right != null) || (left != null && right == null);
if (left == null) left = "(null)";
if (right == null) right = "(null)";
- return fail_if(!nullcheck && left == right, @"$(reason + ": " ?? "")$left == $right");
+ return fail_if(!nullcheck && left == right, @"$(reason + ": " ?? "")'$left' == '$right'");
}
bool fail_if_not_eq_uint8_arr(uint8[] left, uint8[] right, string? reason = null) {