fixed ch; need to figure out what to do with an array of SWIG wrapped types for sequence/choice
This commit is contained in:
parent
aa10384709
commit
4d649d93d3
9 changed files with 50 additions and 17 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue