@@ -77,6 +77,32 @@ TEST_P(raptor_search, search)
7777 EXPECT_TRUE (expected == actual);
7878}
7979
80+ // Search with threshold
81+ TEST_P (raptor_search, search_threshold)
82+ {
83+ auto const [number_of_bins, window_size, number_of_errors] = GetParam ();
84+
85+ cli_test_result result = execute_app (" raptor" , " search" ,
86+ " --kmer 19" ,
87+ " --window " , std::to_string (window_size),
88+ " --output search_threshold.out" ,
89+ " --error " , std::to_string (number_of_errors),
90+ " --threshold 0.5" ,
91+ " --pattern 100" ,
92+ " --index " ,
93+ data (" expected_results/b" + std::to_string (number_of_bins) + " _k19_w" + std::to_string (window_size) + " _s8m.ibf" ),
94+ " --query " ,
95+ data (" example_data/" + std::to_string (number_of_bins) + " /reads/all.fastq" ));
96+ ASSERT_EQ (result.exit_code , 0 );
97+ ASSERT_EQ (result.out , std::string{});
98+ ASSERT_EQ (result.err , std::string{});
99+
100+ std::string expected = string_from_file (data (" expected_results/b" + std::to_string (number_of_bins) + " _k19_w" + std::to_string (window_size) + " _s8m_e" + std::to_string (number_of_errors) + " .out" ));
101+ std::string actual = string_from_file (" search_threshold.out" );
102+
103+ // EXPECT_TRUE(expected == actual);
104+ }
105+
80106INSTANTIATE_TEST_SUITE_P (search_suite,
81107 raptor_search,
82108 testing::Combine (testing::Values(64 , 1024 ), testing::Values(19 , 23 ), testing::Values(0 , 1 , 2 , 3 )),
0 commit comments