From 4b1a1fd5ec72df31bc43c5d82311a316c60d61f6 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 19 Dec 2016 00:32:51 -0500 Subject: Minor refactoring of Text_Based_Test Turns out astyle has some bugs wrt C++11 initialize lists. Rather than having astyle mangle all of the tests, convert to using a string which is split once at the start instead of a vector of keys. --- src/tests/test_passhash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/test_passhash.cpp') diff --git a/src/tests/test_passhash.cpp b/src/tests/test_passhash.cpp index a77fe6532..bfd17a443 100644 --- a/src/tests/test_passhash.cpp +++ b/src/tests/test_passhash.cpp @@ -22,7 +22,7 @@ namespace { class Bcrypt_Tests : public Text_Based_Test { public: - Bcrypt_Tests() : Text_Based_Test("bcrypt.vec", {"Password","Passhash"}) {} + Bcrypt_Tests() : Text_Based_Test("bcrypt.vec", "Password,Passhash") {} Test::Result run_one_test(const std::string&, const VarMap& vars) override { @@ -56,7 +56,7 @@ BOTAN_REGISTER_TEST("bcrypt", Bcrypt_Tests); class Passhash9_Tests : public Text_Based_Test { public: - Passhash9_Tests() : Text_Based_Test("passhash9.vec", {"Password","Passhash"}) {} + Passhash9_Tests() : Text_Based_Test("passhash9.vec", "Password,Passhash") {} Test::Result run_one_test(const std::string&, const VarMap& vars) override { -- cgit v1.2.3