mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add methods
This commit is contained in:
parent
6cb86ce509
commit
109725da79
@ -1,6 +1,7 @@
|
|||||||
package cn.hutool.core.math;
|
package cn.hutool.core.math;
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class CalculatorTest {
|
public class CalculatorTest {
|
||||||
@ -28,4 +29,12 @@ public class CalculatorTest {
|
|||||||
final double conversion = Calculator.conversion("(88*66/23)%26+45%9");
|
final double conversion = Calculator.conversion("(88*66/23)%26+45%9");
|
||||||
Assert.assertEquals((88D * 66 / 23) % 26, conversion, 2);
|
Assert.assertEquals((88D * 66 / 23) % 26, conversion, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void conversationTest5(){
|
||||||
|
// https://github.com/dromara/hutool/issues/1984
|
||||||
|
final double conversion = Calculator.conversion("((1/1) / (1/1) -1) * 100");
|
||||||
|
Assert.assertEquals((88D * 66 / 23) % 26, conversion, 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user