From 8f8018ec81d4ea6e6a5e2f3d811daa57a31f6122 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 27 Jun 2020 11:23:22 +0200 Subject: Fix async tests --- xmpp-vala/tests/common.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/tests/common.vala') 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) { -- cgit v1.2.3-54-g00ecf