fix infinite loop

This commit is contained in:
Thomas Fussell 2016-07-30 18:35:57 -04:00
parent cd3c0c5f0b
commit e8972ec423

View File

@ -518,7 +518,7 @@ public:
void test_scientific()
{
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);
TS_ASSERT_EQUALS(formatted, "6.1E0");
}