Commit e4e873b2 authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent c40753ed
...@@ -41,13 +41,21 @@ public class TestCalc { ...@@ -41,13 +41,21 @@ public class TestCalc {
CalcHelper.divDouble(0D, 0D); CalcHelper.divDouble(0D, 0D);
CalcHelper.addListDouble((Double) null, d2, 0.3);
CalcHelper.addListDouble((Double)null, d2, 0.3); CalcHelper.subListDouble((Double) null, d2, 0.3);
CalcHelper.subListDouble((Double)null, d2, 0.3); CalcHelper.mulListDouble((Double) null, d2, 0.5);
CalcHelper.mulListDouble((Double)null, d2, 0.5); CalcHelper.divListDouble((Double) null, d2, 0.5);
CalcHelper.divListDouble((Double)null, d2, 0.5);
double d4 = d1 + d2; double d4 = d1 + d2;
Assert.assertFalse(CalcHelper.equals(d4, 0.3)); Assert.assertFalse(CalcHelper.equals(d4, 0.3));
} }
@Test
public void test2() throws Exception {
Double d1 = null;
Double d2 = null;
double de = CalcHelper.divDouble(d1, d2);
}
} }
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