Skip to content

Commit 1d22a24

Browse files
committed
Fix test_encoded_string_length() Han test.
1 parent 2381d2b commit 1d22a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function test_encoded_string_length() {
1818

1919
$this->assertEquals( \cli\Colors::length( 'hello' ), 5 );
2020
$this->assertEquals( \cli\Colors::length( 'óra' ), 3 );
21-
$this->assertEquals( \cli\Colors::length( '日本語' ), 3 );
21+
$this->assertEquals( \cli\Colors::length( '日本語' ), 6 ); // 3 double-width chars.
2222

2323
}
2424

0 commit comments

Comments
 (0)