CoolFace
Modelpublic

Felipe97/llama-cpp-compiled

sourceHugging Faceupdated 2d agoView on Hugging Face
0likes1.1kdownloads
test-peg-parser.cpp27 linesDownload Raw Back to tests
1#include <cstdlib>2#include <string>3#include <iostream>4 5#include "peg-parser/tests.h"6 7int main(int argc, char *argv[]) {8    testing t(std::cout);9    if (argc >= 2) {10        t.set_filter(argv[1]);11    }12 13    const char * verbose = getenv("LLAMA_TEST_VERBOSE");14    if (verbose) {15        t.verbose = std::string(verbose) == "1";16    }17 18    t.test("basic", test_basic);19    t.test("unicode", test_unicode);20    t.test("json", test_json_parser);21    t.test("gbnf", test_gbnf_generation);22    t.test("serialization", test_json_serialization);23    t.test("python-dict", test_python_dict_parser);24 25    return t.summary();26}27