Ticket #19067: test_19067.patch
File test_19067.patch, 748 bytes (added by , 12 years ago) |
---|
-
tests/media.php
158 158 $this->assertEquals( '1kB', wp_convert_bytes_to_hr( $kb ) ); 159 159 160 160 // now some values around 161 $this->assert Equals( '1.5009765625GB', wp_convert_bytes_to_hr( $gb + $gb / 2 + $mb ));162 $this->assert Equals( '1022.99902344MB', wp_convert_bytes_to_hr( $gb - $mb - $kb ));161 $this->assertTrue( abs( 1.5009765625 - (float)wp_convert_bytes_to_hr( $gb + $gb / 2 + $mb ) ) < 0.0001 ); 162 $this->assertTrue( abs( 1022.99902344 - (float)wp_convert_bytes_to_hr( $gb - $mb - $kb ) ) < 0.0001 ); 163 163 164 164 // edge 165 165 $this->assertEquals( 'NANB', wp_convert_bytes_to_hr( -1 ) );