string utils: remove stoi/stod wrapper

Change-Id: I06afa15ff33a639458a618364d4eb00197de585a
This commit is contained in:
Adrien Beraud
2024-11-21 13:48:02 -05:00
committed by Adrien Béraud
parent 85e79e5618
commit a7d3197f29
4 changed files with 6 additions and 30 deletions

View File

@ -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()
{