diff options
author | lloyd <[email protected]> | 2013-03-16 17:44:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-16 17:44:36 +0000 |
commit | 3b6eac4497ecf68053d28dd7f84056ee469129d7 (patch) | |
tree | c4d93674550e6642e197cae80c58788e928fc92c /checks/validate.cpp | |
parent | 35c5cbed2ebe0eb72e2ff665b78a9027d17c19ec (diff) |
Add algorithm_kat_detailed which returns a string with info about the failure
Diffstat (limited to 'checks/validate.cpp')
-rw-r--r-- | checks/validate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/checks/validate.cpp b/checks/validate.cpp index 48bc6bd87..388d4940e 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -439,18 +439,18 @@ bool failed_test(const std::string& algo, if(params.size() > 3) vars["iv"] = params[3]; - std::map<std::string, bool> results = - algorithm_kat(algo, vars, global_state().algorithm_factory()); + Algorithm_Factory& af = global_state().algorithm_factory(); + + const auto results = algorithm_kat_detailed(algo, vars, af); if(results.size()) { - for(std::map<std::string, bool>::const_iterator i = results.begin(); - i != results.end(); ++i) + for(auto i : results) { - if(i->second == false) + if(i.second != "passed") { std::cout << algo << " test with provider " - << i->first << " failed\n"; + << i.first << " failed - " << i.second << "\n"; return true; } } |