We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0205c commit 36b6986Copy full SHA for 36b6986
tests/Expression.php
@@ -268,5 +268,19 @@ public function testCustomClosures()
268
$this->assertEquals((bool)$expr->evaluate("even($number)"), $value);
269
}
270
271
+
272
+ // -------------------------------------------------------------------------
273
+ public function testBug_1()
274
+ {
275
+ $expr = new Expression();
276
+ $expr->v += [
277
+ 'f_price' => 500,
278
+ 'f_width' => 500,
279
+ 'f_turndown_0_2_f_count' => 2,
280
+ 'f_length_metal_f_length' => 1400
281
+ ];
282
+ $formula = 'f_price*(f_width+f_turndown_0_2_f_count*10)*f_length_metal_f_length/1000000';
283
+ $this->assertEquals($expr->evaluate($formula), 364);
284
+ }
285
// */
286
0 commit comments