JUnit Assert with BigDecimal
2022-08-31 15:30:10
我想使用2两个小数之间的断言,我使用这个:
BigDecimal bd1 = new BigDecimal (1000);
BigDecimal bd2 = new BigDecimal (1000);
org.junit.Assert.assertSame (bd1,bd2);
但 JUnit 日志显示:
expected <1000> was not: <1000>