diff options
author | lloyd <[email protected]> | 2009-12-23 20:22:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-23 20:22:10 +0000 |
commit | 2c0cbb392a21502ef79414bea72453962ec9110d (patch) | |
tree | 464c60af840acff8392049b72a79184fbd8bf619 /src/selftest | |
parent | ef5ed1ce2ec318e7b405d57b2afc06bda6d8cfd8 (diff) |
Tweak for easier debugging
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); } } |