Great PHP Symbol Renaming; debug build works, optimised build segfaults. is it gcc? fuck it all and let travis sort it out

This commit is contained in:
Meredith L. Patterson 2013-12-18 00:32:56 +01:00
parent bd48af7b90
commit b9ce12f3b6
40 changed files with 228 additions and 192 deletions

View file

@ -7,15 +7,15 @@ class ManyTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->parser = h_many(choice(ch("a"), ch("b")));
$this->parser = hammer_many(hammer_choice(hammer_ch("a"), hammer_ch("b")));
}
public function testSuccess()
{
$result1 = h_parse($this->parser, "");
$result2 = h_parse($this->parser, "a");
$result3 = h_parse($this->parser, "b");
$result4 = h_parse($this->parser, "aabbaba");
$result1 = hammer_parse($this->parser, "");
$result2 = hammer_parse($this->parser, "a");
$result3 = hammer_parse($this->parser, "b");
$result4 = hammer_parse($this->parser, "aabbaba");
$this->assertEquals(array(), $result1);
$this->assertEquals(array("a"), $result2);
$this->assertEquals(array("b"), $result3);