Changeset 3834


Ignore:
Timestamp:
Aug 8, 2019, 3:19:22 AM (4 years ago)
Author:
Peter
Message:

test bug #928 (refs #928).

Location:
branches/0.16-stable/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.16-stable/test/Makefile.am

    r3820 r3834  
    123123
    124124# tests not passing through yet
    125 XFAIL_TESTS =
     125XFAIL_TESTS = test/gff.test
    126126
    127127DISTRIBUTED_TESTS = \
  • branches/0.16-stable/test/data/small.gff2

    r2482 r3834  
    22#Chr  Source  Type  Pos_Start Pos_End Score Strand  Phase Attributes
    33chr3  yat SNP 904531  904531  0.000015  . . genotype "T or C";reference "C"
    4 chr3  yat SNP 969190  969190  0.062500  . . genotype "T";reference "C"
     4chr3  yat SNP 969190  969190  0.062500  . . genotype "T"; reference "C"
  • branches/0.16-stable/test/gff.cc

    r2881 r3834  
    2626#include "yat/omic/GFF2.h"
    2727#include "yat/omic/GFF3.h"
     28
     29#include "yat/utility/Exception.h"
    2830
    2931#include <cassert>
     
    119121                << "'; expected: 'T'\n";
    120122  }
     123  try {
     124    if (gff.attribute("reference")!="C") {
     125      suite.add(false);
     126      suite.err() << "error: incorrect genotype: '" << gff.attribute("genotype")
     127                  << "'; expected: 'T'\n";
     128    }
     129  }
     130  catch (utility::runtime_error& e) {
     131    suite.add(false);
     132    suite.err() << "unexpected exception thrown: what: " << e.what() << "\n";
     133  }
    121134  is.close();
    122135}
Note: See TracChangeset for help on using the changeset viewer.