mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix infinite loop
This commit is contained in:
parent
cd3c0c5f0b
commit
e8972ec423
|
@ -518,7 +518,7 @@ public:
|
||||||
void test_scientific()
|
void test_scientific()
|
||||||
{
|
{
|
||||||
xlnt::number_format nf;
|
xlnt::number_format nf;
|
||||||
nf.set_format_string("0E-0");
|
nf.set_format_string("0.0E-0");
|
||||||
auto formatted = nf.format(6.1, xlnt::calendar::windows_1900);
|
auto formatted = nf.format(6.1, xlnt::calendar::windows_1900);
|
||||||
TS_ASSERT_EQUALS(formatted, "6.1E0");
|
TS_ASSERT_EQUALS(formatted, "6.1E0");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user