Fixed sequence, choice, h_in and h_not_in. ChRange needs its output coerced to char and we're good.

This commit is contained in:
Meredith L. Patterson 2013-12-10 00:53:35 +01:00
parent 4735d17908
commit a09bd53286
6 changed files with 33 additions and 26 deletions

View file

@ -16,10 +16,10 @@ class ManyTest extends PHPUnit_Framework_TestCase
$result2 = h_parse($this->parser, "a");
$result3 = h_parse($this->parser, "b");
$result4 = h_parse($this->parser, "aabbaba");
$this->assertEquals(array(), $result);
$this->assertEquals(array("a"), $result);
$this->assertEquals(array("b"), $result);
$this->assertEquals(array("a", "a", "b", "b", "a", "b", "a"), $result);
$this->assertEquals(array(), $result1);
$this->assertEquals(array("a"), $result2);
$this->assertEquals(array("b"), $result3);
$this->assertEquals(array("a", "a", "b", "b", "a", "b", "a"), $result4);
}
}
?>