From 7dc815ac4d196f01ce76fc5e61ef13b02dace15e Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 7 Apr 2025 14:09:57 +0200 Subject: Fix unexpected behavior of get_attribute_uint on systems with 32-bit long --- xmpp-vala/tests/common.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmpp-vala/tests/common.vala') diff --git a/xmpp-vala/tests/common.vala b/xmpp-vala/tests/common.vala index dc1c8e50..5bd7bbb6 100644 --- a/xmpp-vala/tests/common.vala +++ b/xmpp-vala/tests/common.vala @@ -69,6 +69,10 @@ bool fail_if_not_eq_int(int left, int right, string? reason = null) { return fail_if_not(left == right, @"$(reason + ": " ?? "")$left != $right"); } +bool fail_if_not_eq_uint(uint left, uint right, string? reason = null) { + return fail_if_not(left == right, @"$(reason + ": " ?? "")$left != $right"); +} + private float float_to_accuracy(float f, float accuracy) { return (float) (Math.round(f * Math.pow(10, accuracy)) / Math.pow(10, accuracy)); } -- cgit v1.3