Skip to content

Commit

Permalink
[MISC] Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 8, 2024
1 parent 2e90cbd commit c143c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ibf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ void ibf_helper(std::vector<std::filesystem::path> const & minimiser_files,
size += sizes[i][j];
}

if (size == 0u)
if (size == num_files)
{
throw std::invalid_argument{
std::string("[Error]. The chosen expression threshold is not well picked. If you use the automatic ")
Expand Down
4 changes: 2 additions & 2 deletions test/api/estimate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ TEST_F(estimate_test, example)

std::ifstream output_file("Single_expression.out");
std::string line;
std::string expected{"GeneA\t9\t32\t"};
std::string expected{"GeneA\t10\t32\t"};
if (output_file.is_open())
{
while (std::getline(output_file, line))
Expand Down Expand Up @@ -287,7 +287,7 @@ TEST_F(estimate_test, example_multiple_threads)

std::ifstream output_file("Multiple_expression.out");
std::string line;
std::string expected{"GeneA\t9\t32\t"};
std::string expected{"GeneA\t10\t32\t"};
if (output_file.is_open())
{
while (std::getline(output_file, line))
Expand Down

0 comments on commit c143c45

Please sign in to comment.