From 71ba9885067ba6c8f68883722f598dda4f4206e3 Mon Sep 17 00:00:00 2001 From: smehringer Date: Wed, 9 Oct 2024 10:48:41 +0200 Subject: [PATCH] [FIX,DOC] Fix warning output for differing kmer sizes. --- src/chopper_layout.cpp | 2 +- test/cli/cli_chopper_layout_from_sketch_file.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chopper_layout.cpp b/src/chopper_layout.cpp index fb666740..55352b54 100644 --- a/src/chopper_layout.cpp +++ b/src/chopper_layout.cpp @@ -41,7 +41,7 @@ void validate_configuration(sharg::parser & parser, "[WARNING] Given k-mer size (", config.k, ") differs from k-mer size in the sketch file (", - config.k, + sketch_config.k, "). The results may be suboptimal. If this was a conscious decision, you can ignore this warning.\n"); } } diff --git a/test/cli/cli_chopper_layout_from_sketch_file.cpp b/test/cli/cli_chopper_layout_from_sketch_file.cpp index aca9f3f5..7c664147 100644 --- a/test/cli/cli_chopper_layout_from_sketch_file.cpp +++ b/test/cli/cli_chopper_layout_from_sketch_file.cpp @@ -150,7 +150,7 @@ TEST_F(cli_test, chopper_layout_from_sketch_file) EXPECT_EQ(result2.out, std::string{}); EXPECT_EQ( result2.err, - std::string{"[WARNING] Given k-mer size (20) differs from k-mer size in the sketch file (20). The results may " + std::string{"[WARNING] Given k-mer size (20) differs from k-mer size in the sketch file (19). The results may " "be suboptimal. If this was a conscious decision, you can ignore this warning.\n"}); cli_test_result result3 = execute_app("chopper",