arturobernalg commented on code in PR #223:
URL: https://github.com/apache/commons-math/pull/223#discussion_r1002112860


##########
commons-math-neuralnet/src/test/java/org/apache/commons/math4/neuralnet/NeuronTest.java:
##########
@@ -92,7 +92,7 @@ public void testCopy() {
         final Neuron copy = n.copy();
 
         // Check that original and copy have the same value.
-        Assert.assertTrue(n.getFeatures()[0] == copy.getFeatures()[0]);
+        Assert.assertEquals(n.getFeatures()[0], copy.getFeatures()[0], 0.0);

Review Comment:
   The method without delta its deprecated. `Deprecated
   Use assertEquals(double expected, double actual, double delta) instead` 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to