Skip to content

Commit

Permalink
Uncomment test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Jul 1, 2024
1 parent 65bf6e7 commit 9f9570e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/test_variable_size_binary_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,27 +134,27 @@ namespace sparrow
CHECK_EQ(iter, brange.end());
}

// TEST_CASE_FIXTURE(vs_binary_fixture, "const_iterator")
// {
// layout_type l(m_data);
// auto cref0 = l[0];
// auto cref2 = l[2];
//
// auto iter = l.cbegin();
// // CHECK_EQ(*iter, std::make_optional(cref0.value()));
//
// ++iter;
// CHECK(!iter->has_value());
//
// ++iter;
// CHECK_EQ(iter->value(), cref2.value());
//
// iter++;
// CHECK_EQ(iter, l.cend());
//
// iter -= 3;
// CHECK_EQ(iter, l.cbegin());
// }
TEST_CASE_FIXTURE(vs_binary_fixture, "const_iterator")
{
const layout_type l(m_data);
auto cref0 = l[0];
auto cref2 = l[2];

auto iter = l.cbegin();
CHECK_EQ(*iter, std::make_optional(cref0.value()));

++iter;
CHECK(!iter->has_value());

++iter;
CHECK_EQ(iter->value(), cref2.value());

iter++;
CHECK_EQ(iter, l.cend());

iter -= 3;
CHECK_EQ(iter, l.cbegin());
}

TEST_CASE("vs_binary_reference")
{
Expand Down

0 comments on commit 9f9570e

Please sign in to comment.