diff --git a/tests/test-cli.php b/tests/test-cli.php index eb7e338..06540f3 100644 --- a/tests/test-cli.php +++ b/tests/test-cli.php @@ -26,9 +26,9 @@ function test_encoded_string_length() { function test_encoded_substr() { - $this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'hello', 0, 2 ) ), 'he' ); - $this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'óra' , 0, 2 ) ), 'ór' ); - + $this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'hello', 6), 0, 2 ), 'he' ); + $this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'óra', 6), 0, 2 ), 'ór' ); + } function test_colorized_string_length() {