Add test to show error happening

This commit is contained in:
Mike Jolley 2017-11-06 18:00:47 +00:00
parent 939c115ddb
commit fe72fdfbd2
1 changed files with 3 additions and 0 deletions

View File

@ -294,6 +294,9 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
// Trim zeros and round.
$this->assertEquals( '10', wc_format_decimal( 9.9999, '', true ) );
// Floats.
$this->assertEquals( '0.2222222222222222', wc_format_decimal( 0.2222222222222222 ) );
update_option( 'woocommerce_price_decimal_sep', '.' );
update_option( 'woocommerce_price_thousand_sep', ',' );
}