rubysolo/dentaku

external function gets called twice

Nghi93 opened this issue · 5 comments

Given this hash:

hash = {
  test: 'POW(3, 3)'
}
calculator = Dentaku::Calculator.new  
calculator.solve(hash)  

my external function gets called twice with the same parameters.
Is this intended? Why is it called twice.

This does not happen when 3, 3 is given through variables:

calculator.store(a: 3, b: 3) 
calculator.solve(test: 'POW(a,b)')  

No, this is not intended -- I'll look into it. Thanks for reporting!

Fixed in f508515

Thank you for fixing this issue so fast.
Is it possible to release a patch version for dentaku?

Sure, I'll try to get a release out this afternoon.

Released v3.4.1! 🎉