woocommerce/tests/unit-tests
Paul Kilmurray cb12623fa7 Compound tax calculation test
There is either an error in the calculation for compound taxes, or
there is something wrong with my understanding of how compound taxes
should work - I’m definitely not discounting the later.

Given a price of $9.99 exclusive of tax, applying a 10% tax will give
9.99 + 0.999 = 10.989. Then applying a compound tax of 2% should give
10.989 + 0.2198 = 11.2088.

The result of the WC_Tax::calc_tax on the 2% compound tax is 0.1998
which seems to be in error.

Likewise for prices exclusive of tax.

Note: rounding to 4 decimal places on all calculations
2015-02-23 14:40:10 +08:00
..
api Add factory for webhook unit tests 2014-09-05 14:34:51 -04:00
cart.php Unit Tests: wrote cart test_get_coupons method. 2014-11-11 14:28:52 +01:00
conditional-functions.php Created some conditional functions tests 2014-11-18 14:22:14 -02:00
core-functions.php Update wc_get_base_location() unit test 2015-01-05 10:26:35 +00:00
coupon-functions.php Add unit tests for coupon functions 2014-09-05 02:36:35 -04:00
coupon.php Fixed the coupons tests and improved the tax tests 2014-12-04 11:44:55 -02:00
customer.php Clearing out the cart, and the mock product 2014-12-11 00:00:49 -06:00
formatting-functions.php Replace many asserts with @dataProvider 2014-12-21 21:57:30 +01:00
install.php Tweaks roles typo 2015-02-03 22:07:58 +05:45
notice-functions.php Unit Tests: Only check for error notices as methods add success notices. 2014-10-28 11:53:22 +01:00
tax.php Compound tax calculation test 2015-02-23 14:40:10 +08:00
woocommerce.php Changing the WC_LOG_DIR shouldn't fail the unit test. 2014-10-14 14:23:18 +02:00