36 using namespace verifierUtils;
38 #define PATH_TO_INPUT_FILE "./input.txt"
39 #define PATH_TO_OUTPUT_FILE "./actual_output.txt"
50 std::ofstream &output)
70 std::ofstream &output)
97 mpz_class integer(line,10);
98 bt =
new Leaf(integer);
119 while (input>>number)
121 std::vector<uint8_t> content(number);
122 for (
unsigned int i=0; i<number; i++)
131 bt =
new Leaf(content);
133 for (
unsigned int i=0; i<array.size(); i++)
149 std::cout<<
"Run ./bt_test <function to test> and it will parse the"
152 <<
"you\nshould read the documentation ^^"<<
"\n\n"
153 <<
"Available functions are:"<<
"\n"
154 <<
" - ByteTree::parseString\n"
155 <<
" - ByteTree::parseFile\n"
156 <<
" - Leaf.toInteger\n"
157 <<
" - Leaf.toBoolArray\n"
163 int main(
int argc,
char ** argv)
172 if (strcmp(argv[1],
"ByteTree::parseString") == 0)
174 else if (strcmp(argv[1],
"ByteTree::parseFile") == 0)
176 else if (strcmp(argv[1],
"Leaf.toInteger") == 0)
178 else if (strcmp(argv[1],
"Leaf.toBoolArray") == 0)