diff options
Diffstat (limited to 'src/selftest')
-rw-r--r-- | src/selftest/selftest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selftest/selftest.cpp b/src/selftest/selftest.cpp index 61f9c5571..291643f2c 100644 --- a/src/selftest/selftest.cpp +++ b/src/selftest/selftest.cpp @@ -19,12 +19,14 @@ namespace { */ bool test_filter_kat(Filter* filter, const std::string& input, - const std::string& output) + const std::string& expected_output) { Pipe pipe(new Hex_Decoder, filter, new Hex_Encoder); pipe.process_msg(input); - return (output == pipe.read_all_as_string()); + std::string output = pipe.read_all_as_string(); + + return (output == expected_output); } } |