mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add Calculator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user