Commit graph

6 commits

Author SHA1 Message Date
Meredith L. Patterson
2e0c56f403 kindasorta working. all tests (except h_action and h_attr_bool, need typemaps) have passed at one time or another, but some segfault at not-quite-random; h_and, h_epsilon_p, h_end_p, h_ignore, h_not, maybe h_choice seem culprity. 2013-11-19 19:15:14 -06:00
Meredith L. Patterson
5ced9fe9d5 h_sequence, h_choice and HCountedSequence are all having weird issues, but tests are in a workable format now 2013-11-19 19:15:13 -06:00
Meredith L. Patterson
2d459282d4 there's the uint8_t problem (mostly) sorted 2013-11-19 19:15:13 -06:00
Meredith L. Patterson
b979f66c21 python tests baked into scons; h_ch needs the first char of its input string as its input 2013-11-19 19:15:13 -06:00
Meredith L. Patterson
4330a426e9 Finished writing unit tests. Fixed a few small bugs in hammer.py. Further issues:
* "in_" and "not_in" should coerce their results to strings (i.e., chr(result))
 * TestLeftrec: success case 2 fails
 * TestChRange: success case segfaults
 * TestWhitespaceEnd: success case segfaults
 * TestAction: success case segfaults with "corrupted double-linked list"
 * TestButNotRange: segfaults, probably because of whatever's wrong with ch_range
 * TestXor: segfaults; failure case craps out with "malloc(): smallbin double linked list corrupted"
2013-11-19 19:11:31 -06:00
Dan Hirsch
c58555d6a9 Added a few tests 2013-11-19 19:11:30 -06:00