Skip to content

Commit 5da8474

Browse files
authored
Merge pull request #261 from smehringer/tiny_fix
[FIX,DOC] Fix warning output for differing kmer sizes.
2 parents 35872da + 71ba988 commit 5da8474

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/chopper_layout.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void validate_configuration(sharg::parser & parser,
4141
"[WARNING] Given k-mer size (",
4242
config.k,
4343
") differs from k-mer size in the sketch file (",
44-
config.k,
44+
sketch_config.k,
4545
"). The results may be suboptimal. If this was a conscious decision, you can ignore this warning.\n");
4646
}
4747
}

Diff for: test/cli/cli_chopper_layout_from_sketch_file.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ TEST_F(cli_test, chopper_layout_from_sketch_file)
150150
EXPECT_EQ(result2.out, std::string{});
151151
EXPECT_EQ(
152152
result2.err,
153-
std::string{"[WARNING] Given k-mer size (20) differs from k-mer size in the sketch file (20). The results may "
153+
std::string{"[WARNING] Given k-mer size (20) differs from k-mer size in the sketch file (19). The results may "
154154
"be suboptimal. If this was a conscious decision, you can ignore this warning.\n"});
155155

156156
cli_test_result result3 = execute_app("chopper",

0 commit comments

Comments
 (0)