Working on optimisation but I'm still losing to std::to_string()
This commit is contained in:
parent
420257f578
commit
9dbabcb5c4
6 changed files with 52 additions and 20 deletions
|
@ -1,9 +1,9 @@
|
|||
project(dhandy_unit_test CXX)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
int_conv_test.cpp
|
||||
main.cpp
|
||||
endianness_test.cpp
|
||||
int_conv_test.cpp
|
||||
reversed_sized_array_test.cpp
|
||||
bitfield_pack_test.cpp
|
||||
resource_pool_test.cpp
|
||||
|
|
|
@ -266,11 +266,11 @@ TEST_CASE ("Check upcase/downcase int to array conversions", "[i2s][int_conv]")
|
|||
}
|
||||
|
||||
TEST_CASE ("Try int conv with non-char", "[s2i][int_conv]") {
|
||||
using dhandy::int_to_ary;
|
||||
using dhandy::buildtime_int_to_ary;
|
||||
using dhandy::ASCIITranslator;
|
||||
|
||||
std::wstring_view exp1(L"235713");
|
||||
auto val1 = int_to_ary<int, 10, ASCIITranslator<wchar_t>>(235713).to_string_view();
|
||||
auto val1 = buildtime_int_to_ary<int, 235713, 10, ASCIITranslator<wchar_t>>().to_string_view();
|
||||
CHECK(exp1 == val1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue