mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-17 01:16:21 +08:00
fix bug in ibitset find_next method (#338)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
This commit is contained in:
parent
557f881d6c
commit
f5534fefdf
@ -1013,6 +1013,20 @@ namespace
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
TEST(test_find_next_multi_byte_bitset_github_issue_336)
|
||||
{
|
||||
etl::bitset<24> data;
|
||||
data.set(12);
|
||||
data.set(22);
|
||||
CHECK_EQUAL(12U, data.find_next(true, 3));
|
||||
CHECK_EQUAL(12U, data.find_next(true, 10));
|
||||
|
||||
// set first ten bytes
|
||||
data.set("1111111111");
|
||||
CHECK_EQUAL(10U, data.find_next(false, 3));
|
||||
CHECK_EQUAL(10U, data.find_next(false, 9));
|
||||
}
|
||||
|
||||
TEST(test_find_next_github_issue_336)
|
||||
{
|
||||
etl::bitset<16> bits16;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user