mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
test number format locale currency symbol
This commit is contained in:
parent
e26c5595d1
commit
112aa14e1a
|
@ -105,4 +105,13 @@ public:
|
|||
formatted = nf.format(0, xlnt::calendar::windows_1900);
|
||||
TS_ASSERT_EQUALS(formatted, "third0");
|
||||
}
|
||||
|
||||
void test_locale_currency()
|
||||
{
|
||||
xlnt::number_format nf;
|
||||
nf.set_format_string("[$€-407]#,##0.00");
|
||||
|
||||
auto formatted = nf.format(1.2, xlnt::calendar::windows_1900);
|
||||
TS_ASSERT_EQUALS(formatted, "€1,20");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user