summaryrefslogtreecommitdiff
path: root/test/utils.cpp
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-06-16 19:26:15 +0800
committerchenzizhan <[email protected]>2023-06-16 19:26:15 +0800
commit21572a22ba4bc54b2255f58ec9d72ebd5e294172 (patch)
tree5a58ba1a7e87e9beade92070287f5436c8ed2ea5 /test/utils.cpp
parent458f92ffdc1d923246028811ced178b7531ffec0 (diff)
first test case and very many bug fixed
Diffstat (limited to 'test/utils.cpp')
-rw-r--r--test/utils.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/test/utils.cpp b/test/utils.cpp
index d2ccc69..f6653f5 100644
--- a/test/utils.cpp
+++ b/test/utils.cpp
@@ -2,8 +2,10 @@
#include <string>
#include <stdlib.h>
+#include <iostream>
+#include <type_traits>
-
+#include "fieldstat.h"
#include "utils.hpp"
using namespace std;
@@ -16,4 +18,24 @@ string gen_rand_string(int len)
s += 'a' + rand() % 26;
}
return s;
-} \ No newline at end of file
+}
+
+// class Tester
+// {
+// public:
+// explicit Tester(string name)
+// {
+// string instance_name = name;
+// instance = fieldstat_new(name.c_str());
+// }
+// ~Tester()
+// {
+// fieldstat_free(instance);
+// }
+// template<typename First, typename... Args>
+// requires std::is_same_v<First, struct >
+
+// private:
+// string instance_name;
+// struct fieldstat *instance;
+// }; \ No newline at end of file