summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-19 18:39:11 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-19 18:39:11 -0400
commit07d3f954c9ac338f15be09bd8b67bd323fcd8433 (patch)
tree866f10c949b1916b36784dfe0628f0688a0d4863 /datatest.cpp
parent182fd5f100ab3d7a90cf74d3e4b63a79703471b3 (diff)
downloadcryptopp-git-07d3f954c9ac338f15be09bd8b67bd323fcd8433.tar.gz
Update datatest.cpp
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/datatest.cpp b/datatest.cpp
index 6417d38c..4a7a5554 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -43,17 +43,10 @@ NAMESPACE_BEGIN(Test)
ANONYMOUS_NAMESPACE_BEGIN
-typedef std::map<std::string, std::string> TestData;
bool s_thorough = false;
-const std::string testDataFilename = "cryptest.dat";
-
-class TestFailure : public Exception
-{
-public:
- TestFailure() : Exception(OTHER_ERROR, "Validation test failed") {}
-};
-
+typedef std::map<std::string, std::string> TestData;
const TestData *s_currentTestData = NULLPTR;
+const std::string testDataFilename = "cryptest.dat";
// Handles CR, LF, and CRLF properly
bool Readline(std::istream& stream, std::string& line)
@@ -119,6 +112,12 @@ std::string TrimComment(const std::string& str)
return TrimSpace(str);
}
+class TestFailure : public Exception
+{
+public:
+ TestFailure() : Exception(OTHER_ERROR, "Validation test failed") {}
+};
+
void OutputTestData(const TestData &v)
{
std::cerr << "\n";