tests.h 554 B

123456789101112131415161718192021222324
  1. #pragma once
  2. // Common includes for all test files
  3. #include <nlohmann/json.hpp>
  4. #include <string>
  5. #include <vector>
  6. #include "testing.h"
  7. #include "peg-parser.h"
  8. #include "chat-peg-parser.h"
  9. #include "simple-tokenize.h"
  10. struct bench_tool_call {
  11. std::string id;
  12. std::string name;
  13. nlohmann::ordered_json args;
  14. };
  15. // Test function declarations
  16. void test_basic(testing &t);
  17. void test_json_parser(testing &t);
  18. void test_gbnf_generation(testing &t);
  19. void test_unicode(testing &t);
  20. void test_json_serialization(testing &t);