aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_aead.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-19 00:32:51 -0500
committerJack Lloyd <[email protected]>2016-12-19 00:32:51 -0500
commit4b1a1fd5ec72df31bc43c5d82311a316c60d61f6 (patch)
tree3faf085ba5270f92d1d50b09e5fd642f9041b035 /src/tests/test_aead.cpp
parentabac6ab59b363c2ac571d13496a70d98e04a5c2f (diff)
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.
Diffstat (limited to 'src/tests/test_aead.cpp')
-rw-r--r--src/tests/test_aead.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp
index 18e4417a8..306589b93 100644
--- a/src/tests/test_aead.cpp
+++ b/src/tests/test_aead.cpp
@@ -20,9 +20,7 @@ namespace {
class AEAD_Tests : public Text_Based_Test
{
public:
- AEAD_Tests() :
- Text_Based_Test("aead", {"Key", "Nonce", "In", "Out"}, {"AD"})
- {}
+ AEAD_Tests() : Text_Based_Test("aead", "Key,Nonce,In,Out", "AD") {}
Test::Result test_enc(const std::vector<uint8_t>& key, const std::vector<uint8_t>& nonce,
const std::vector<uint8_t>& input, const std::vector<uint8_t>& expected,