Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jltsiren committed Jun 8, 2022
1 parent c2bda45 commit 526f8f1
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/unittest/gbwt_extender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ TEST_CASE("Gaps in a linear graph", "[wfa_extender]") {

//------------------------------------------------------------------------------

TEST_CASE("Special cases in a linear graph") {
TEST_CASE("Special cases in a linear graph", "[wfa_extender]") {
// Create the structures for graph 1: CGC, 2: GATTACA, 3: GATTA, 4: TAT
gbwt::GBWT index = wfa_linear_gbwt();
gbwtgraph::GBWTGraph graph = wfa_linear_graph(index);
Expand Down Expand Up @@ -1357,9 +1357,9 @@ TEST_CASE("Special cases in a linear graph") {
}

SECTION("Mixed edits") {
// MMMMXM|MMDDM
std::string sequence("ATTAGAGAA");
pos_t from(2, false, 1); pos_t to(3, false, 4);
// MMMMXM|MMDDM|MM
std::string sequence("ATTAGAGAATA");
pos_t from(2, false, 1); pos_t to(4, false, 1);
WFAAlignment result = extender.connect(sequence, from, to);
check_score(result, aligner, sequence.length() - 1, 1, 1, 2);
check_alignment(result, sequence, graph, aligner, &from, &to);
Expand All @@ -1373,15 +1373,6 @@ TEST_CASE("Special cases in a linear graph") {
check_score(result, aligner, sequence.length() - 2, 2, 0, 0);
check_alignment(result, sequence, graph, aligner, &from, &to);
}

SECTION("Ins + del beats mismatches") {
// MMM|MMMMIIIIIIDDD|DDDMM|MMM
std::string sequence("CGCGATTacagatTATAT");
pos_t from(2, false, 0); pos_t to(3, false, 4);
WFAAlignment result = extender.connect(sequence, from, to);
check_score(result, aligner, sequence.length() - 6, 0, 2, 12);
check_alignment(result, sequence, graph, aligner, &from, &to);
}
}

//------------------------------------------------------------------------------
Expand Down

1 comment on commit 526f8f1

@adamnovak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch wfa-over-gbwt. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 10867 seconds

Please sign in to comment.