tree-sitter/spec/runtime/arithmetic_spec.cpp

17 lines
400 B
C++
Raw Normal View History

#include "spec_helper.h"
2014-01-08 18:35:16 -08:00
#include "document.h"
extern TSParseConfig ts_parse_config_arithmetic;
2013-12-17 13:14:41 -08:00
START_TEST
2013-12-17 13:14:41 -08:00
describe("arithmetic", []() {
it("parses_numbers", [&]() {
2014-01-07 21:50:32 -08:00
TSDocument *document = TSDocumentMake();
2014-01-08 18:35:16 -08:00
TSDocumentSetUp(document, ts_parse_config_arithmetic);
TSDocumentSetText(document, "w");
2014-01-07 21:50:32 -08:00
printf("%s", TSDocumentToString(document));
});
});
END_TEST