fixed ch; need to figure out what to do with an array of SWIG wrapped types for sequence/choice

This commit is contained in:
Meredith L. Patterson 2013-12-01 16:07:25 -08:00
parent aa10384709
commit 4d649d93d3
9 changed files with 50 additions and 17 deletions

View file

@ -7,13 +7,13 @@ class RightTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->parser = h_right(h_ch(" "), h_ch("a"));
$this->parser = h_right(ch(" "), ch("a"));
}
public function testSuccess()
{
$result = h_parse($this->parser, " a");
// TODO fix these tests when h_ch is fixed
$this->assertEquals(97, $result);
$this->assertEquals("a", $result);
}
public function testFailure()
{