From 178a217edbf17a83f45db294a2d7a5b546a4853c Mon Sep 17 00:00:00 2001 From: Wojciech Date: Mon, 9 Oct 2023 00:16:17 +0200 Subject: [PATCH] Update test_checked_from_scale_to_value --- decimal_core/src/factories.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decimal_core/src/factories.rs b/decimal_core/src/factories.rs index 2f188ea..ee5be50 100644 --- a/decimal_core/src/factories.rs +++ b/decimal_core/src/factories.rs @@ -253,7 +253,7 @@ pub fn generate_factories(characteristics: DecimalCharacteristics) -> proc_macro true ); - let result: i32 = #struct_name::checked_from_scale_to_value(1, 30).unwrap().try_into().unwrap(); + let result: i32 = #struct_name::checked_from_scale_to_value(1, 38).unwrap().try_into().unwrap(); assert_eq!(result, 0); }