Changeset 2464 for branches/0.7-stable


Ignore:
Timestamp:
Apr 11, 2011, 10:29:28 PM (12 years ago)
Author:
Peter
Message:

fixes #644.

Location:
branches/0.7-stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/NEWS

    r2412 r2464  
    66
    77version 0.7.2 (released NOT YET)
     8  - omic::Codon("ATG").amino_acid() now return 'M' (bug #664)
    89
    910  A complete list of closed tickets can be found here [[br]]
  • branches/0.7-stable/test/codon.cc

    r2370 r2464  
    22
    33/*
    4   Copyright (C) 2010 Peter Johansson
     4  Copyright (C) 2010, 2011 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    5353    suite.err() << "error: expected end() to return false\n";
    5454
     55  if (!suite.add(Codon("ATG").amino_acid()=='M'))
     56    suite.err() << "error: Codon(\"ATG\").amino_acid() returns: `"
     57                << Codon("ATG").amino_acid() << "'\n";
     58
     59  if (!suite.add(Codon("ATG").start()))
     60    suite.err() << "error: Codon(\"ATG\").start() returns: false\n";
     61
    5562  return suite.return_value();
    5663}
  • branches/0.7-stable/yat/omic/Codon.cc

    r2369 r2464  
    22
    33/*
    4   Copyright (C) 2010 Peter Johansson
     4  Copyright (C) 2010, 2011 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    138138    add_to_map('I', "ATT,ATC,ATA");
    139139    add_to_map('V', "GTT,GTC,GTA,GTG");
    140     add_to_map('\0',"ATG"); // start
    141140    add_to_map('*',"TAA,TGA,TAG"); //  stop
    142141  }
     
    145144  bool Codon::start(void) const
    146145  {
    147     return iter_->second=='\0';
     146    return iter_->second=='M';
    148147  }
    149148
Note: See TracChangeset for help on using the changeset viewer.