FIX[Format-parser]: Parse [$€]#,##0.00 correctly

We will need to have a look at the format parser sooner rather
than later though
This commit is contained in:
Nicolás Hatcher
2024-12-09 19:39:23 +01:00
parent 2f2a5e4fba
commit 4ef8a6882f
5 changed files with 28 additions and 0 deletions

View File

@@ -76,6 +76,14 @@ fn test_color() {
assert_eq!(format_number(3.1, "[blue]0.00", locale).color, Some(4));
}
#[test]
fn dollar_euro() {
let locale = get_default_locale();
let format = "[$€]#,##0.00";
let t = format_number(3.1, format, locale);
assert_eq!(t.text, "€3.10");
}
#[test]
fn test_parts() {
let locale = get_default_locale();