File: test_getmasked.cpp

package info (click to toggle)
ivar 1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,924 kB
  • sloc: cpp: 4,907; javascript: 866; sh: 120; makefile: 37
file content (16 lines) | stat: -rwxr-xr-x 635 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <fstream>

#include "../src/get_masked_amplicons.h"

int main()
{
  int num_tests = 1, success = 0;
  get_primers_with_mismatches("../data/test.bed", "../data/test.filtered.tsv", "../data/test.masked_primer_indices", "../data/pair_information.tsv");
  std::ifstream masked_indices_file("../data/test.masked_primer_indices.txt");
  std::string indices;
  getline(masked_indices_file, indices);
  if(indices.compare("WNV_400_2_LEFT\tWNV_400_2_RIGHT\tWNV_400_2_LEFT_alt\tWNV_400_1_LEFT\tWNV_400_1_RIGHT\tWNV_400_1_LEFT_alt\tWNV_400_3_LEFT") == 0)
    success += 1;
  return (num_tests == success) ? 0 : -1;
}