Fix broken test
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
131e6177e1
commit
eb3f7f848d
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
namespace Aviat\Kilo\Tests;
|
namespace Aviat\Kilo\Tests;
|
||||||
|
|
||||||
use Aviat\Kilo\Enum\Color;
|
|
||||||
use Aviat\Kilo\Enum\Highlight;
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
use function Aviat\Kilo\array_replace_range;
|
use function Aviat\Kilo\array_replace_range;
|
||||||
@ -14,7 +12,6 @@ use function Aviat\Kilo\is_digit;
|
|||||||
use function Aviat\Kilo\is_separator;
|
use function Aviat\Kilo\is_separator;
|
||||||
use function Aviat\Kilo\is_space;
|
use function Aviat\Kilo\is_space;
|
||||||
use function Aviat\Kilo\str_has;
|
use function Aviat\Kilo\str_has;
|
||||||
use function Aviat\Kilo\syntax_to_color;
|
|
||||||
use function Aviat\Kilo\tabs_to_spaces;
|
use function Aviat\Kilo\tabs_to_spaces;
|
||||||
|
|
||||||
class FunctionTest extends TestCase {
|
class FunctionTest extends TestCase {
|
||||||
@ -88,14 +85,6 @@ class FunctionTest extends TestCase {
|
|||||||
$this->assertTrue(is_separator("\0"));
|
$this->assertTrue(is_separator("\0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_syntax_to_color(): void
|
|
||||||
{
|
|
||||||
// Nonsense input returns FG::White
|
|
||||||
$this->assertEquals(syntax_to_color(999), Color::FG_WHITE);
|
|
||||||
|
|
||||||
$this->assertNotEquals(syntax_to_color(Highlight::OPERATOR), Color::FG_WHITE);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function test_str_contains(): void
|
public function test_str_contains(): void
|
||||||
{
|
{
|
||||||
// Search from string offset
|
// Search from string offset
|
||||||
|
Loading…
Reference in New Issue
Block a user