Skip to content

Commit 0162243

Browse files
committed
Also test against std::to_string
1 parent ade2858 commit 0162243

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_to_string.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void test_builtin()
5050
const auto value_str {to_string(int128_t{value})};
5151

5252
BOOST_TEST_CSTR_EQ(buffer, value_str.c_str());
53+
BOOST_TEST_CSTR_EQ(std::to_string(value).c_str(), value_str.c_str());
5354
}
5455
}
5556

@@ -71,11 +72,13 @@ void test_builtin()
7172
const auto value_str {to_string(int128_t{value})};
7273

7374
BOOST_TEST_CSTR_EQ(buffer, value_str.c_str());
75+
BOOST_TEST_CSTR_EQ(std::to_string(value).c_str(), value_str.c_str());
7476
}
7577
{
7678
const auto value_str {to_string(uint128_t{value})};
7779

7880
BOOST_TEST_CSTR_EQ(buffer, value_str.c_str());
81+
BOOST_TEST_CSTR_EQ(std::to_string(value).c_str(), value_str.c_str());
7982
}
8083
}
8184
}

0 commit comments

Comments
 (0)