Add 0 bug test.
authorMaxime Bourget <bmx007@gmail.com>
Sun, 26 May 2013 15:13:35 +0000 (16:13 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Sun, 26 May 2013 15:13:35 +0000 (16:13 +0100)
test/expandTest.php

index 9dc3fa36bbc34da929765d96bd989b7d87b44b93..6a875f7cc18828974c823e7871cf6c8b72349e6b 100644 (file)
@@ -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 **/
+
        
                );
        }