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_mceliece.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/tests/test_mceliece.cpp') diff --git a/src/tests/test_mceliece.cpp b/src/tests/test_mceliece.cpp index 05a7448ff..22bdd95fe 100644 --- a/src/tests/test_mceliece.cpp +++ b/src/tests/test_mceliece.cpp @@ -38,11 +38,10 @@ class McEliece_Keygen_Encrypt_Test : public Text_Based_Test { public: McEliece_Keygen_Encrypt_Test() : - Text_Based_Test("McEliece", - "pubkey/mce.vec", - {"McElieceSeed", "KeyN","KeyT","PublicKeyFingerprint", - "PrivateKeyFingerprint", "EncryptPRNGSeed", - "SharedKey", "Ciphertext" }) + Text_Based_Test("pubkey/mce.vec", + "McElieceSeed,KeyN,KeyT,PublicKeyFingerprint,PrivateKeyFingerprint," + "EncryptPRNGSeed,SharedKey,Ciphertext", + "") {} Test::Result run_one_test(const std::string&, const VarMap& vars) override -- cgit v1.2.3