Merge branch 'hotfix/etl-bitset-bugs-#497' of https://github.com/ETLCPP/etl into hotfix/etl-bitset-bugs-#497

# Conflicts:
#	test/test_bitset_new_default_element_type.cpp
#	test/test_bitset_new_explicit_single_element_type.cpp
#	test/test_bitset_new_ext_default_element_type.cpp
#	test/test_bitset_new_ext_explicit_single_element_type.cpp
This commit is contained in:
John Wellbelove 2026-10-15 17:54:41 +01:00
commit 5d75d66037

View File

@ -403,11 +403,13 @@ namespace
} }
//************************************************************************* //*************************************************************************
TEST(test_construct_from_nullptr_char_string) TEST(test_construct_from_64_bit_char_string_where_the_bitset_size_is_60)
{ {
const char* s = nullptr; std::bitset<60> compare("110001001000110100010101100111001100010010001101000101011001");
etl::bitset<60> data("110001001000110100010101100111001100010010001101000101011001");
etl::bitset<60> data(s); CHECK_EQUAL(compare.size(), data.size());
CHECK_EQUAL(compare.count(), data.count());
CHECK_EQUAL(60, data.size()); CHECK_EQUAL(60, data.size());
CHECK_EQUAL(0, data.count()); CHECK_EQUAL(0, data.count());