bayehem/rsem/detonate-1.11/ref-eval/test_re_matched.cpp
BOOST_AUTO_TEST_CASE(sanity)
{
  tagged_alignment al1{ 0, 0, Segs{ {0, 99, 0, 99, {}, {}} }, nan("") };
  size_t A_card = 1, B_card = 1;
  double pair_recall = compute_recall<pair_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  double nucl_recall = compute_recall<nucl_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  double tran_recall = compute_recall<tran_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  CHECK_CLOSE(pair_recall, 1.0);
  CHECK_CLOSE(nucl_recall, 1.0);
  CHECK_CLOSE(tran_recall, 1.0);
}
// one perfect alignment from a0 -> b0, where these are the only seqs present
one perfect alignment from a0 -> b0, where these are the only seqs present
one perfect alignment from a0 - > b0 where these are the only seqs present
BOOST_AUTO_TEST_CASE(sanity)
{
  tagged_alignment al1{ 0, 0, Segs{ {0, 99, 0, 99, {}, {}} }, nan("") };
  size_t A_card = 1, B_card = 1;
  double pair_recall = compute_recall<pair_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  double nucl_recall = compute_recall<nucl_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  double tran_recall = compute_recall<tran_helper>({al1}, A_card, B_card, Lens{100}, Taus{1.0}, 0);
  CHECK_CLOSE(pair_recall, 1.0);
  CHECK_CLOSE(nucl_recall, 1.0);
  CHECK_CLOSE(tran_recall, 1.0);
}
BOOST_AUTO_TEST_CASE ( sanity ) { tagged_alignment al1 { 0 , 0 , Segs { { 0 , 99 , 0 , 99 , { } , { } } } , nan ( " " ) } ; size_t A_card = 1 , B_card = 1 ; double pair_recall = compute_recall < pair_helper > ( { al1 } , A_card , B_card , Lens { 100 } , Taus { 1.0 } , 0 ) ; double nucl_recall = compute_recall < nucl_helper > ( { al1 } , A_card , B_card , Lens { 100 } , Taus { 1.0 } , 0 ) ; double tran_recall = compute_recall < tran_helper > ( { al1 } , A_card , B_card , Lens { 100 } , Taus { 1.0 } , 0 ) ; CHECK_CLOSE ( pair_recall , 1.0 ) ; CHECK_CLOSE ( nucl_recall , 1.0 ) ; CHECK_CLOSE ( tran_recall , 1.0 ) ; }
one perfect alignment from a0 -> b0, where these are the only seqs present
one perfect alignment from a0 - > b0 where these are the only seqs present