diff options
Diffstat (limited to 'src/tests/test_pad.cpp')
-rw-r--r-- | src/tests/test_pad.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_pad.cpp b/src/tests/test_pad.cpp index 1eb8b615f..592ae660b 100644 --- a/src/tests/test_pad.cpp +++ b/src/tests/test_pad.cpp @@ -17,9 +17,7 @@ namespace Botan_Tests { class Cipher_Mode_Padding_Tests : public Text_Based_Test { public: - Cipher_Mode_Padding_Tests() : - Text_Based_Test("pad.vec", "In,Blocksize", "Out") - {} + Cipher_Mode_Padding_Tests() : Text_Based_Test("pad.vec", "In,Blocksize", "Out") {} Test::Result run_one_test(const std::string& header, const VarMap& vars) override { @@ -32,8 +30,10 @@ class Cipher_Mode_Padding_Tests : public Text_Based_Test auto underscore = algo.find('_'); if(underscore != std::string::npos) { - if(algo.substr(underscore+1,std::string::npos) != "Invalid") + if(algo.substr(underscore + 1, std::string::npos) != "Invalid") + { throw Test_Error("Unexpected padding header " + header); + } algo = algo.substr(0, underscore); } |