Skip to content

Commit

Permalink
#410: epoch: change unused InsertEpoch to DependentEpoch
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 18, 2023
1 parent 6833a5f commit ccd5afd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/vt/epoch/epoch.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static constexpr BitCountType const epoch_category_num_bits = 2;
*/
enum struct eEpochCategory : int8_t {
NoCategoryEpoch = 0x0,
InsertEpoch = 0x1,
DependentEpoch = 0x1,
DijkstraScholtenEpoch = 0x2
};

Expand Down
8 changes: 4 additions & 4 deletions tests/unit/epoch/test_epoch.nompi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ TEST_P(TestEpochParam, basic_test_epoch_category_1) {
auto const start_seq = GetParam();
auto epoch = epoch::EpochManip::generateEpoch(
false, uninitialized_destination,
epoch::eEpochCategory::InsertEpoch
epoch::eEpochCategory::DependentEpoch
);
epoch::EpochManip::setSeq(epoch, start_seq);
auto const is_rooted = epoch::EpochManip::isRooted(epoch);
Expand All @@ -105,14 +105,14 @@ TEST_P(TestEpochParam, basic_test_epoch_category_1) {

EXPECT_TRUE(!is_rooted);
EXPECT_EQ(get_seq, start_seq);
EXPECT_EQ(cat, epoch::eEpochCategory::InsertEpoch);
EXPECT_EQ(cat, epoch::eEpochCategory::DependentEpoch);
}

TEST_P(TestEpochParam, basic_test_epoch_all_1) {
auto const& n = 48;
auto const start_seq = GetParam();
auto epoch = epoch::EpochManip::generateEpoch(
true, n, epoch::eEpochCategory::InsertEpoch
true, n, epoch::eEpochCategory::DependentEpoch
);
epoch::EpochManip::setSeq(epoch, start_seq);
auto const is_rooted = epoch::EpochManip::isRooted(epoch);
Expand All @@ -123,7 +123,7 @@ TEST_P(TestEpochParam, basic_test_epoch_all_1) {
EXPECT_TRUE(is_rooted);
EXPECT_EQ(get_seq, start_seq);
EXPECT_EQ(ep_node, n);
EXPECT_EQ(cat, epoch::eEpochCategory::InsertEpoch);
EXPECT_EQ(cat, epoch::eEpochCategory::DependentEpoch);
}

INSTANTIATE_TEST_SUITE_P(
Expand Down

0 comments on commit ccd5afd

Please sign in to comment.