Changeset 3625


Ignore:
Timestamp:
Mar 6, 2017, 4:09:59 AM (6 years ago)
Author:
Peter
Message:

fixes #886

Location:
branches/0.14-stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.14-stable/NEWS

    r3622 r3625  
    66
    77version 0.14.2 (released NOT YET)
     8  - Bug fixed in omic::dna_reverse_complement_copy (see bug #886)
    89
    910  A complete list of closed tickets can be found here [[br]]
  • branches/0.14-stable/test/dna_reverse_complement.cc

    r3517 r3625  
    22
    33/*
    4   Copyright (C) 2016 Peter Johansson
     4  Copyright (C) 2016, 2017 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    3535  test::Suite suite(argc, argv);
    3636
     37  std::string random("ACGTATATATAGG");
     38  // test that reverse complement (in-place) and copy version yield same results
     39  std::string result1(random);
     40  dna_reverse_complement(result1.begin(), result1.end());
     41  std::string result2;
     42  dna_reverse_complement_copy(random.begin(), random.end(),
     43                              std::back_inserter(result2));
     44  if (result1 != result2) {
     45    suite.add(false);
     46    suite.err() << "input: " << random << "\n";
     47    suite.err() << "dna_reverse_complement: " << result1 << "\n";
     48    suite.err() << "dna_reverse_complement_copy: " << result2 << "\n";
     49  }
     50
    3751  if (false) { // do not run compiler tests
    3852    using namespace boost::iterator_archetypes;
  • branches/0.14-stable/yat/omic/algorithm.h

    r3550 r3625  
    55
    66/*
    7   Copyright (C) 2012, 2013, 2014, 2016 Peter Johansson
     7  Copyright (C) 2012, 2013, 2014, 2016, 2017 Peter Johansson
    88
    99  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    190190    BOOST_CONCEPT_ASSERT((boost_concepts::BidirectionalTraversal<BidirectionalIterator>));
    191191
    192     dna_complement(boost::make_reverse_iterator(begin),
    193                    boost::make_reverse_iterator(end), out);
     192    dna_complement(boost::make_reverse_iterator(end),
     193                   boost::make_reverse_iterator(begin), out);
    194194  }
    195195
Note: See TracChangeset for help on using the changeset viewer.