Build fix in unit test

This commit is contained in:
King_DuckZ 2021-04-22 13:14:10 +02:00
parent 93d2ad6bd0
commit da136cd52f

View file

@ -31,13 +31,13 @@ template <typename T> using int_info_2 = dhandy::implem::int_info<T, 2>;
namespace { namespace {
template <typename T, unsigned int Base> template <typename T, unsigned int Base>
void AryConversionTestHelper (const std::string_view& s, T expected) { void AryConversionTestHelper (const std::string_view& s, T expected) {
using AryConversion = dhandy::implem::AryConversion<T, Base, dhandy::ASCIITranslator<char>>; using AryConversion = dhandy::implem::AryConversion<T, Base, dhandy::ASCIITranslator<char>, false>;
CHECK(AryConversion::from_ary(s.data(), s.data() + s.size()) == expected); CHECK(AryConversion::from_ary(s.data(), s.data() + s.size()) == expected);
} }
template <typename T, unsigned int Base> template <typename T, unsigned int Base>
void AryConversionTestHelperUp (const std::string_view& s, T expected) { void AryConversionTestHelperUp (const std::string_view& s, T expected) {
using AryConversion = dhandy::implem::AryConversion<T, Base, dhandy::ASCIITranslatorUpcase<char>>; using AryConversion = dhandy::implem::AryConversion<T, Base, dhandy::ASCIITranslatorUpcase<char>, false>;
CHECK(AryConversion::from_ary(s.data(), s.data() + s.size()) == expected); CHECK(AryConversion::from_ary(s.data(), s.data() + s.size()) == expected);
} }
} //unnamed namespace } //unnamed namespace