Skip to content

Commit

Permalink
Merge pull request #18 from invariant-labs/test_checked_from_scale_to…
Browse files Browse the repository at this point in the history
…_value

Update test_checked_from_scale_to_value
  • Loading branch information
wojciech-cichocki authored Oct 8, 2023
2 parents f0c61d3 + 178a217 commit 9d4992b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decimal_core/src/factories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9d4992b

Please sign in to comment.