Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 3a3adb4

Browse files
Fixed typo in test_encoded_substr
1 parent 71bf7a7 commit 3a3adb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test-cli.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function test_encoded_string_length() {
2626

2727
function test_encoded_substr() {
2828

29-
$this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'hello', 0, 2 ) ), 'he' );
30-
$this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'óra' , 0, 2 ) ), 'ór' );
31-
29+
$this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'hello', 6), 0, 2 ), 'he' );
30+
$this->assertEquals( \cli\safe_substr( \cli\Colors::pad( 'óra', 6), 0, 2 ), 'ór' );
31+
3232
}
3333

3434
function test_colorized_string_length() {

0 commit comments

Comments
 (0)