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;
|
||||
|
||||
use Aviat\Kilo\Enum\Color;
|
||||
use Aviat\Kilo\Enum\Highlight;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
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_space;
|
||||
use function Aviat\Kilo\str_has;
|
||||
use function Aviat\Kilo\syntax_to_color;
|
||||
use function Aviat\Kilo\tabs_to_spaces;
|
||||
|
||||
class FunctionTest extends TestCase {
|
||||
@ -88,14 +85,6 @@ class FunctionTest extends TestCase {
|
||||
$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
|
||||
{
|
||||
// Search from string offset
|
||||
|
Loading…
Reference in New Issue
Block a user