mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
string utils: remove stoi/stod wrapper
Change-Id: I06afa15ff33a639458a618364d4eb00197de585a
This commit is contained in:

committed by
Adrien Béraud

parent
85e79e5618
commit
a7d3197f29
@ -40,7 +40,6 @@ public:
|
||||
private:
|
||||
void bool_to_str_test();
|
||||
void to_string_test();
|
||||
void to_number_test();
|
||||
void split_string_test();
|
||||
void starts_with_test();
|
||||
void version_test();
|
||||
@ -48,7 +47,6 @@ private:
|
||||
CPPUNIT_TEST_SUITE(StringUtilsTest);
|
||||
CPPUNIT_TEST(bool_to_str_test);
|
||||
CPPUNIT_TEST(to_string_test);
|
||||
CPPUNIT_TEST(to_number_test);
|
||||
CPPUNIT_TEST(split_string_test);
|
||||
CPPUNIT_TEST(starts_with_test);
|
||||
CPPUNIT_TEST(version_test);
|
||||
@ -89,16 +87,6 @@ StringUtilsTest::to_string_test()
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)16, from_hex_string("0000000000000010"s));
|
||||
}
|
||||
|
||||
void
|
||||
StringUtilsTest::to_number_test()
|
||||
{
|
||||
// test with int
|
||||
CPPUNIT_ASSERT(jami::stoi(PI_42) == INT);
|
||||
|
||||
// test with double
|
||||
CPPUNIT_ASSERT(jami::stod(PI_DOUBLE) == DOUBLE);
|
||||
}
|
||||
|
||||
void
|
||||
StringUtilsTest::split_string_test()
|
||||
{
|
||||
|
Reference in New Issue
Block a user