decrufted tests that rely on h_ch; still need to do h_action and h_attr_bool

This commit is contained in:
Meredith L. Patterson 2013-12-10 01:06:21 +01:00
parent a09bd53286
commit de02a2450b
6 changed files with 2 additions and 8 deletions

View file

@ -12,8 +12,7 @@ class InTest extends PHPUnit_Framework_TestCase
public function testSuccess() public function testSuccess()
{ {
$result = h_parse($this->parser, "b"); $result = h_parse($this->parser, "b");
// TODO: fixme when h_ch is fixed $this->assertEquals("b", $result);
$this->assertEquals(98, $result);
} }
public function testFailure() public function testFailure()
{ {

View file

@ -12,7 +12,6 @@ class LeftTest extends PHPUnit_Framework_TestCase
public function testSuccess() public function testSuccess()
{ {
$result = h_parse($this->parser, "a "); $result = h_parse($this->parser, "a ");
// TODO fix these tests when h_ch is fixed
$this->assertEquals("a", $result); $this->assertEquals("a", $result);
} }
public function testFailure() public function testFailure()

View file

@ -12,7 +12,6 @@ class MiddleTest extends PHPUnit_Framework_TestCase
public function testSuccess() public function testSuccess()
{ {
$result = h_parse($this->parser, " a "); $result = h_parse($this->parser, " a ");
// TODO fix these tests when h_ch is fixed
$this->assertEquals("a", $result); $this->assertEquals("a", $result);
} }
public function testFailure() public function testFailure()

View file

@ -12,8 +12,7 @@ class NotInTest extends PHPUnit_Framework_TestCase
public function testSuccess() public function testSuccess()
{ {
$result = h_parse($this->parser, "d"); $result = h_parse($this->parser, "d");
// TODO: fixme when h_ch is fixed $this->assertEquals("d", $result);
$this->assertEquals(100, $result);
} }
public function testFailure() public function testFailure()
{ {

View file

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

View file

@ -17,7 +17,6 @@ class WhitespaceTest extends PHPUnit_Framework_TestCase
$result2 = h_parse($this->parser1, " a"); $result2 = h_parse($this->parser1, " a");
$result3 = h_parse($this->parser1, " a"); $result3 = h_parse($this->parser1, " a");
$result4 = h_parse($this->parser1, "\ta"); $result4 = h_parse($this->parser1, "\ta");
// TODO fix these tests when h_ch is fixed
$this->assertEquals("a", $result1); $this->assertEquals("a", $result1);
$this->assertEquals("a", $result2); $this->assertEquals("a", $result2);
$this->assertEquals("a", $result3); $this->assertEquals("a", $result3);