Commit 02ea3059 authored by yanzg's avatar yanzg

升级新版本

parent 95d7f2f4
package helper;
import com.yanzuoguang.util.helper.CalcHelper;
import com.yanzuoguang.util.helper.RsaHelper;
import org.junit.Assert;
import org.junit.Test;
public class TestCalc {
@Test
public void test() throws Exception {
double d1 = 0.1;
double d2 = 0.2;
double d3 = CalcHelper.add(d1, d2);
Assert.assertTrue(CalcHelper.equals(d3, 0.3));
double d4 = d1 + d2;
Assert.assertFalse(CalcHelper.equals(d4, 0.3));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment