Debian Codegraph @

tests/test_getmasked.cpp

raw
1 #include <fstream>
2 #include <iostream>
3
4 #include "../src/get_masked_amplicons.h"
5
6 int main() {
7 int num_tests = 1, success = 0;
8 get_primers_with_mismatches("../data/test.bed", "../data/test.filtered.tsv",
9 "../data/test.masked_primer_indices",
10 "../data/pair_information.tsv");
11 std::ifstream masked_indices_file("../data/test.masked_primer_indices.txt");
12 std::string indices;
13 getline(masked_indices_file, indices);
14 if (indices.compare(
15 "WNV_400_2_LEFT\tWNV_400_2_RIGHT\tWNV_400_2_LEFT_alt\tWNV_400_1_"
16 "LEFT\tWNV_400_1_RIGHT\tWNV_400_1_LEFT_alt\tWNV_400_3_LEFT") == 0)
17 success += 1;
18 return (num_tests == success) ? 0 : -1;
19 }