21/06/2021

[Java] Test if two matrices are equals

Given two matrix objects, check if they are equals. They are not guaranteed to have the same dimensions. They are equals only if they have the same dimensions and the content is the same.

I just needed this to use in testing another exercise, the code is quite self explanatory and you can find it in areMatrixEquals in my Gist along with tests in AreMatrixEqualsJTests.

No comments:

Post a Comment

With great power comes great responsibility