aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_block.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-05-29 14:48:15 -0400
committerJack Lloyd <[email protected]>2018-05-29 14:48:15 -0400
commit48fb47c2aad3d39c51d971685b0be3f6a9292e15 (patch)
treefaeca0d57adec9f76bc5fbe0f5f84383b79f787f /src/tests/test_block.cpp
parent5b60dae056a652c9eb0b480db8bfa020ead9d4e1 (diff)
Make the tests VarMap an actual type instead of a hashmap typedef.
Diffstat (limited to 'src/tests/test_block.cpp')
-rw-r--r--src/tests/test_block.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_block.cpp b/src/tests/test_block.cpp
index cb2eff807..111e79b4b 100644
--- a/src/tests/test_block.cpp
+++ b/src/tests/test_block.cpp
@@ -24,10 +24,10 @@ class Block_Cipher_Tests final : public Text_Based_Test
Test::Result run_one_test(const std::string& algo, const VarMap& vars) override
{
- const std::vector<uint8_t> key = get_req_bin(vars, "Key");
- const std::vector<uint8_t> input = get_req_bin(vars, "In");
- const std::vector<uint8_t> expected = get_req_bin(vars, "Out");
- const size_t iterations = get_opt_sz(vars, "Iterations", 1);
+ const std::vector<uint8_t> key = vars.get_req_bin("Key");
+ const std::vector<uint8_t> input = vars.get_req_bin("In");
+ const std::vector<uint8_t> expected = vars.get_req_bin("Out");
+ const size_t iterations = vars.get_opt_sz("Iterations", 1);
Test::Result result(algo);