Max Brunsfeld
0cc1090001
Read grammar tests from corpus dir instead of grammar_test dir
2017-06-21 16:31:25 -07:00
Max Brunsfeld
513edec7c1
Merge pull request #77 from philipturnbull/scan-build-fixes
...
Fix errors found by scan-build
2017-06-20 10:15:20 -07:00
Max Brunsfeld
932feb2498
Fix gcc warning in test helper file
2017-06-15 17:13:01 -07:00
Max Brunsfeld
c66fddd3aa
Add TSInput option to measure columns in bytes not characters
2017-06-15 16:35:34 -07:00
Phil Turnbull
aa6e93820c
Silence false-positive warning in ts_record_free
...
This is safe but I think it is technically undefined behaviour to use a pointer
after it has been freed:
test/helpers/record_alloc.cc:75:3: warning: Use of memory after it is freed
record_deallocation(pointer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-06-14 11:12:06 -04:00
Max Brunsfeld
82cb1c9806
Handle invalid UTF8 in encoding test helpers
...
Signed-off-by: Tim Clem <timothy.clem@gmail.com>
2017-04-27 14:49:44 -07:00
Max Brunsfeld
a15e974150
Make clearer assertions about SpyInput's read strings
2017-03-21 12:14:04 -07:00
Max Brunsfeld
7e0ae4505a
Handle invalid UTF8 in encoding test helpers
...
Signed-off-by: Tim Clem <timothy.clem@gmail.com>
2017-03-21 11:12:08 -07:00
Max Brunsfeld
20b8983749
Handle external scanner w/ .c extension in test helper
2017-03-19 22:20:16 -07:00
Max Brunsfeld
6d8f9ebaba
In tests, regenerate parser if its timestamp matches grammar.json
...
After running the fetch-fixtures script, their timestamps may be equal,
but in this situation we *do* want to re-generate the parsers.
2017-03-17 17:04:04 -07:00
Max Brunsfeld
ed8fbff175
Allow anonymous tokens to be used in grammars' external token lists
2017-03-17 16:31:29 -07:00
Max Brunsfeld
db4b9ebc7c
Implement Rule as a union rather than an abstract base class
2017-03-17 13:29:31 -07:00
Max Brunsfeld
6dc0ff359d
Rename spec -> test
...
'Test' is a lot more straightforward of a name.
2017-03-09 20:40:01 -08:00