From 21572a22ba4bc54b2255f58ec9d72ebd5e294172 Mon Sep 17 00:00:00 2001 From: chenzizhan Date: Fri, 16 Jun 2023 19:26:15 +0800 Subject: first test case and very many bug fixed --- test/utils.cpp | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'test/utils.cpp') 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 #include +#include +#include - +#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 +// requires std::is_same_v + +// private: +// string instance_name; +// struct fieldstat *instance; +// }; \ No newline at end of file -- cgit v1.2.3