Skip to content

Commit

Permalink
Add sites checking to next test and this time checked forward search …
Browse files Browse the repository at this point in the history
…too - test fails

See bug #32
  • Loading branch information
zamiqbal committed Aug 1, 2016
1 parent 6ee8138 commit 2a41ce1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/unittest_bidir_search_bwd_fwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ TEST(BackwardSearchTest, Match_within_long_site_match_outside){

TEST(BackwardSearchTest, Long_site_and_repeated_snp_on_edge_of_site){

//prg = gacatagacacacagt5gtcgcctcgtcggctttgagt6gtcgctgctccacacagagact5ggtgctagac7c8a7ccagctgctccacacagaga
test_file2="../test_cases/repeated_snp_on_both_edges.txt";
//read aligns across sites 5 and 7, allele 1 in both cases
query="tagacacacagtgtcgcctcgtcggctttgagtggtgctagacccca";
mask_file="../test_cases/match_within_long_site_mask_a.txt";
ifstream g(mask_file);
Expand Down Expand Up @@ -555,6 +557,14 @@ TEST(BackwardSearchTest, Long_site_and_repeated_snp_on_edge_of_site){
EXPECT_EQ(1,sa_intervals.size());
EXPECT_EQ(no_occ,1);

EXPECT_EQ(sites.front().front().first, 7);
EXPECT_EQ(sites.front().front().second.front(), 1);
EXPECT_EQ(sites.front().front().second.size(), 1);
EXPECT_EQ(sites.front().back().first, 5);
EXPECT_EQ(sites.front().back().second.front(), 1);
EXPECT_EQ(sites.front().back().second.size(), 1);


sa_intervals.clear();
sa_intervals_rev.clear();
sites.clear();
Expand All @@ -571,6 +581,13 @@ TEST(BackwardSearchTest, Long_site_and_repeated_snp_on_edge_of_site){
EXPECT_EQ(1,sa_intervals.size());
EXPECT_EQ(no_occ,1);

EXPECT_EQ(sites.front().front().first, 5);
EXPECT_EQ(sites.front().front().second.front(), 1);
EXPECT_EQ(sites.front().front().second.size(), 1);
EXPECT_EQ(sites.front().back().first, 7);
EXPECT_EQ(sites.front().back().second.front(), 1);
EXPECT_EQ(sites.front().back().second.size(), 1);

sa_intervals.clear();
sa_intervals_rev.clear();
sites.clear();
Expand Down

0 comments on commit 2a41ce1

Please sign in to comment.