Rename spec -> test

'Test' is a lot more straightforward of a name.
This commit is contained in:
Max Brunsfeld 2017-03-09 20:40:01 -08:00
parent 7d8daf573e
commit 6dc0ff359d
109 changed files with 44 additions and 44 deletions

16
test/tests.cc Normal file
View file

@ -0,0 +1,16 @@
#include "test_helper.h"
int main(int argc, char *argv[]) {
int seed;
const char *seed_env = getenv("TREE_SITTER_SEED");
if (seed_env) {
seed = atoi(seed_env);
} else {
seed = time(nullptr);
}
printf("Random seed: %d\n", seed);
srandom(seed);
return bandit::run(argc, argv);
}