You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Thanks for this great library. Amazing job.
I'm having trouble to print numbers. It'm getting different display depending on the constructor I used. Not sure it is intended...
#[test]
fn test_to_string_formatter() {
let sut = rusty_money::Money::from_minor(10000, rusty_money::iso::EUR);
let actual = format!("{}", sut);
assert_eq!("€100,00", actual)
} // pass
#[test]
fn test_to_string_formatter_from_major() {
let sut = rusty_money::Money::from_major(100, rusty_money::iso::EUR);
//let sut = Money::from_major(100);
let actual = format!("{}", sut);
assert_eq!("€100,00", actual)
} //fails with left: "€100.00". right: "€100"
Any idea how to prevent this?
The text was updated successfully, but these errors were encountered:
Hi, Thanks for this great library. Amazing job.
I'm having trouble to print numbers. It'm getting different display depending on the constructor I used. Not sure it is intended...
Any idea how to prevent this?
The text was updated successfully, but these errors were encountered: