Skip to content

Commit c9ccc1a

Browse files
committed
merge conditions
1 parent de381af commit c9ccc1a

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/Test_Table.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,9 @@ public function test_column_odd_single_width_with_double_width() {
9999
$this->assertSame( 3, count( $result ) );
100100
if ( Shell::is_windows() ) {
101101
$this->assertSame( '1あいうえ ', $result[0] );
102-
} else {
103-
$this->assertSame( '1あいうえ ', $result[0] ); // 1 single-width, 4 double-width, space = 10.
104-
}
105-
if ( Shell::is_windows() ) {
106102
$this->assertSame( 'おか2きくカ ', $result[1] );
107103
} else {
104+
$this->assertSame( '1あいうえ ', $result[0] ); // 1 single-width, 4 double-width, space = 10.
108105
$this->assertSame( 'おか2きくカ', $result[1] ); // 2 double-width, 1 single-width, 2 double-width, 1 half-width = 10.
109106
}
110107
$this->assertSame( 'けこ ', $result[2] ); // 2 double-width, 8 spaces = 10.
@@ -120,12 +117,9 @@ public function test_column_odd_single_width_with_double_width() {
120117
// Uneven rows.
121118
if ( Shell::is_windows() ) {
122119
$this->assertSame( '1 ', $result[0] );
123-
} else {
124-
$this->assertSame( '1', $result[0] );
125-
}
126-
if ( Shell::is_windows() ) {
127120
$this->assertSame( '', $result[1] );
128121
} else {
122+
$this->assertSame( '1', $result[0] );
129123
$this->assertSame( '', $result[1] );
130124
}
131125

0 commit comments

Comments
 (0)