Skip to content

Commit b9353ef

Browse files
committed
Add dummy check of equivalency
1 parent 3286477 commit b9353ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_to_chars_quantum.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ void test_to_chars_scientific()
2121
T{3000000, -4},
2222
};
2323

24+
for (std::size_t i {}; i < decimals.size(); ++i)
25+
{
26+
for (std::size_t j {}; j < decimals.size(); ++j)
27+
{
28+
BOOST_TEST_EQ(decimals[i], decimals[j]);
29+
}
30+
}
31+
2432
const std::array<const char*, 7> strings = {
2533
"3e+02",
2634
"3.0e+02",
@@ -37,7 +45,7 @@ void test_to_chars_scientific()
3745
const auto r {to_chars(buffer, buffer + sizeof(buffer), decimals[i], chars_format::scientific, quantum_preservation::on)};
3846
BOOST_TEST(r);
3947
*r.ptr = '\0';
40-
48+
4149
BOOST_TEST_CSTR_EQ(buffer, strings[i]);
4250
}
4351

0 commit comments

Comments
 (0)