simdjson/tests/singleheadertest.cpp

18 lines
430 B
C++
Raw Normal View History

2020-03-27 08:08:54 +08:00
// This file is not part of our main, regular tests.
#include "../singleheader/simdjson.h"
#include <iostream>
using namespace simdjson;
int main() {
2020-04-07 00:45:45 +08:00
const char *filename = SIMDJSON_BENCHMARK_DATA_DIR "/twitter.json";
padded_string p = get_corpus(filename);
2020-03-29 02:43:41 +08:00
dom::parser parser;
auto [doc, error] = parser.parse(p);
if(error) {
std::cerr << error << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}