add Calculator

This commit is contained in:
Looly
2020-09-17 10:07:50 +08:00
parent db7c54bf69
commit 6b89c841d3
6 changed files with 225 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
package cn.hutool.core.math;
import org.junit.Assert;
import org.junit.Test;
public class CalculatorTest {
@Test
public void conversationTest(){
final double conversion = Calculator.conversion("(0*1--3)-5/-4-(3*(-2.13))");
Assert.assertEquals(10.64, conversion, 2);
}
}