mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
25 lines
863 B
Diff
25 lines
863 B
Diff
From 2f349f93028bf6d3bbf6922efadc35554d8a5168 Mon Sep 17 00:00:00 2001
|
|
From: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
Date: Tue, 24 Jun 2025 01:07:37 +0100
|
|
Subject: [PATCH] fix: use 32 bit usize constants in tests
|
|
|
|
---
|
|
src/shared/ext.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/shared/ext.rs b/src/shared/ext.rs
|
|
index 9be6e2e..5ce3314 100644
|
|
--- a/src/shared/ext.rs
|
|
+++ b/src/shared/ext.rs
|
|
@@ -452,7 +452,7 @@ pub mod num {
|
|
#[test_case(6789, "6,789")]
|
|
#[test_case(1, "1")]
|
|
#[test_case(0, "0")]
|
|
- #[test_case(99_999_999_999, "99,999,999,999")]
|
|
+ #[test_case(4_294_967_295, "4,294,967,295")] // equivalent to u32::MAX, as not to break 32 bit architectures
|
|
fn usize_format(input: usize, expected: &str) {
|
|
let result = input.with_thousands_separator(",");
|
|
|
|
--
|
|
2.49.0
|
|
|