From: Maxime Bourget Date: Sun, 26 May 2013 15:13:35 +0000 (+0100) Subject: Add 0 bug test. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6571efd5f9683f4286cf26624280f221ad5a7b41;p=textcart.git Add 0 bug test. --- diff --git a/test/expandTest.php b/test/expandTest.php index 9dc3fa3..6a875f7 100644 --- a/test/expandTest.php +++ b/test/expandTest.php @@ -17,6 +17,7 @@ class ExpandTest extends PHPUnit_Framework_TestCase { ,array('2', null, null, '2') /** use template **/ ,array('10', '5', null, '5') /** value override template one **/ + ,array('10', '0', 'default', '0') /** value override template one **/ ,array('-#-', '5', 'default', '-5-') /** but not if # in it */ ,array('-@-', '5', 'default', '5') /** value override if formulat use default */ ,array('#-@', '5', 'default', '5-default') /** def can be use in template formula **/ @@ -31,6 +32,8 @@ class ExpandTest extends PHPUnit_Framework_TestCase { ,array('(@)', '5', '2+7', '9') /** template formula win **/ ,array('(!@)', '5', '2+7', '2+7') /** don't evaluate the expression **/ + ,array(null, 0, 5, 0) /** discount bug **/ + ); }