You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "yangshaoqin1 (JIRA)" <ji...@apache.org> on 2019/02/27 08:34:00 UTC
[jira] [Created] (SCB-1178) In the unit test, the issue of
assertEquals and Float.MAX_VALUE.
yangshaoqin1 created SCB-1178:
---------------------------------
Summary: In the unit test, the issue of assertEquals and Float.MAX_VALUE.
Key: SCB-1178
URL: https://issues.apache.org/jira/browse/SCB-1178
Project: Apache ServiceComb
Issue Type: Improvement
Components: Java-Chassis
Reporter: yangshaoqin1
In unit tests, code like the following can pass the test, which means that there is an invalid unit test code that needs to be improved.
{code:java}
Assert.assertEquals(Float.MAX_VALUE, Float.MAX_VALUE-1,0);
Assert.assertEquals(Float.MAX_VALUE, Float.MAX_VALUE-100000,0);
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)