Skip to content

Commit

Permalink
revert some test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusta committed May 29, 2024
1 parent 09c57ce commit 3a3b5c8
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions metagraph/tests/graph/all/test_dbg_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ TYPED_TEST(DeBruijnGraphTest, Weighted) {
}

TYPED_TEST(DeBruijnGraphTest, ReverseComplement) {
auto graph1 = build_graph<TypeParam>(12, { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" });
auto graph2 = build_graph<TypeParam>(12, { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"TTTTTTTTTTTTTTTTTTTTTTTTTTTTT" });

EXPECT_EQ(graph1->num_nodes() * 2, graph2->num_nodes());

auto graph = build_graph<TypeParam>(12, { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"TTTTTTTTTTTTTTTTTTTTTTTTTTTTT",
"CATGTACTAGCTGATCGTAGCTAGCTAGC" });
Expand All @@ -189,12 +195,6 @@ TYPED_TEST(DeBruijnGraphTest, ReverseComplement) {
EXPECT_FALSE(graph->find("GCTAGCTAGCTACGATCAGCTAGTACATG"));
EXPECT_FALSE(graph->find("CATGTTTTTTTAATATATATATTTTTAGC"));
EXPECT_FALSE(graph->find("GCTAAAAATATATATATTAAAAAAACATG"));

auto graph1 = build_graph<TypeParam>(12, { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" });
auto graph2 = build_graph<TypeParam>(12, { "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"TTTTTTTTTTTTTTTTTTTTTTTTTTTTT" });

EXPECT_EQ(graph1->num_nodes() * 2, graph2->num_nodes());
}

TYPED_TEST(DeBruijnGraphTest, CheckGraph) {
Expand Down Expand Up @@ -251,30 +251,30 @@ TYPED_TEST(DeBruijnGraphTest, TestNonASCIIStrings) {

TYPED_TEST(DeBruijnGraphTest, AddSequences) {
{
// TODO: add version with N at the ends of these
std::vector<std::string> sequences { "AGACT", "GACTT", "ACTAT" };
EXPECT_EQ(3u, build_graph<TypeParam>(5, sequences)->num_nodes());
EXPECT_EQ(3u, build_graph_batch<TypeParam>(5, sequences)->num_nodes());
}
{
std::vector<std::string> sequences { "AGAC", "GACT", "ACTA" };
EXPECT_EQ(3u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(3u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
std::vector<std::string> sequences { "AAAC", "CAAC" };
EXPECT_EQ(2u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(2u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
}
{
std::vector<std::string> sequences { "AAAC", "CAAC", "GAAC" };
EXPECT_EQ(3u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(3u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
}
{
std::vector<std::string> sequences { "AAAC", "CAAC" };
std::vector<std::string> sequences { "AAAC", "AACG" };
EXPECT_EQ(2u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(2u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
}
{
std::vector<std::string> sequences { "AAAC", "AACG" };
EXPECT_EQ(2u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(2u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
// TODO: add version with N at the ends of these
std::vector<std::string> sequences { "AGACT", "GACTT", "ACTAT" };
EXPECT_EQ(3u, build_graph<TypeParam>(5, sequences)->num_nodes());
EXPECT_EQ(3u, build_graph_batch<TypeParam>(5, sequences)->num_nodes());
}
{
std::vector<std::string> sequences { "AGAC", "GACT", "ACTA" };
EXPECT_EQ(3u, build_graph<TypeParam>(4, sequences)->num_nodes());
EXPECT_EQ(3u, build_graph_batch<TypeParam>(4, sequences)->num_nodes());
}
}

Expand Down

0 comments on commit 3a3b5c8

Please sign in to comment.