Changeset 2987


Ignore:
Timestamp:
Feb 18, 2013, 9:13:46 AM (9 years ago)
Author:
Peter
Message:

add test for modify element in sequence. refs #746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/bam.cc

    r2986 r2987  
    116116    suite.add(false);
    117117  }
     118  uint8_t c = bam.sequence(24);
     119  if (c != 4) {
     120    suite.add(false);
     121    suite.err() << "error: sequence: " << static_cast<int>(c)
     122                << " expected " << 4 << "\n";
     123  }
     124  bam.sequence(24, 8);
     125  c = bam.sequence(24);
     126  if (c != 8) {
     127    suite.add(false);
     128    suite.err() << "error: sequence: " << static_cast<int>(c)
     129                << " expected " << 8 << "\n";
     130  }
    118131  test_cigar(suite, bam, in.header());
    119132}
Note: See TracChangeset for help on using the changeset viewer.