Changeset 4154


Ignore:
Timestamp:
Mar 10, 2022, 12:39:44 AM (7 months ago)
Author:
Peter
Message:

fix spurious error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vcf.cc

    r4145 r4154  
    202202      VCF vcf2(vcf);
    203203      std::vector<size_t> index = {0, 2};
    204       vcf.subset(index);
     204      vcf2.subset(index);
     205      suite.out() << "vcf: " << vcf << "\n";
     206      suite.out() << "vcf2:" << vcf2 << "\n";
    205207      std::ostringstream ss;
    206208      ss << vcf;
     
    213215      for (size_t i=0; i<vec2.size(); ++i) {
    214216        size_t j = i < 9 ? i : 9 + index[i-9];
    215         if (vec2[j] != vec[i]) {
     217        if (vec2[i] != vec[j]) {
    216218          suite.add(false);
    217           suite.err() << "vcf != vcf2: " << vec2[j] << "!=" << vec[i] << "\n";
     219          suite.err() << "vcf != vcf2: " << vec2[i] << "!=" << vec[j] << "\n";
    218220        }
    219221      }
Note: See TracChangeset for help on using the changeset viewer.