Rename spec -> test
'Test' is a lot more straightforward of a name.
This commit is contained in:
parent
7d8daf573e
commit
6dc0ff359d
109 changed files with 44 additions and 44 deletions
16
test/tests.cc
Normal file
16
test/tests.cc
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue