diff options
author | Marvin W <git@larma.de> | 2020-06-27 11:23:22 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-06-28 11:53:43 +0200 |
commit | 8f8018ec81d4ea6e6a5e2f3d811daa57a31f6122 (patch) | |
tree | 9bfcf2e8812293a80bdfefd6872ccb7e93a79536 /xmpp-vala/tests/common.vala | |
parent | 717d0b7fcaede5688a236af847d518be4a8f0c6b (diff) | |
download | dino-8f8018ec81d4ea6e6a5e2f3d811daa57a31f6122.tar.gz dino-8f8018ec81d4ea6e6a5e2f3d811daa57a31f6122.zip |
Fix async tests
Diffstat (limited to 'xmpp-vala/tests/common.vala')
-rw-r--r-- | xmpp-vala/tests/common.vala | 4 |
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) { |