Skip to content

Commit 168e5bc

Browse files
committed
add single-witdh char to test
1 parent 7667f5e commit 168e5bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test-table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ public function test_column_value_too_long_with_multibytes() {
4646
$renderer->setConstraintWidth( $constraint_width );
4747
$table->setRenderer( $renderer );
4848
$table->setHeaders( array( 'Field', 'Value' ) );
49-
$table->addRow( array( 'この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、', 'こんにちは' ) );
49+
$table->addRow( array( '1この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。この文章はダミーです。文字の大きさ、量、字間、行間等を確認するために入れています。', 'こんにちは' ) );
5050
$table->addRow( array( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'Hello' ) );
5151

5252
$out = $table->getDisplayLines();
53+
print_r($out);
5354
for ( $i = 0; $i < count( $out ); $i++ ) {
5455
$this->assertEquals( $constraint_width, \cli\strwidth( $out[$i] ) + 1 );
5556
}

0 commit comments

Comments
 (0)