You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the saddle-points tests you don't get a very descriptive error message (unless I'm doing something wrong). The error message I get is something along the lines of:
expected:<MatrixCoordinate@1f> but was:<MatrixCoordinate@0
Which isn't much help in finding out what you've done wrong.
To improve this we could iterate over the sets and compare each point with a more detailed error message e.g.
"Expected row to be " + expected.getRow() + " and it was " + actual.getRow() + ". Expected column to be " + expected.getCol() + " and it was " + actual.getCol() + ".";
Activity
Smarticles101 commentedon Sep 24, 2017
Great idea. Another possible fix would be to implement a
toStringmethod forMatrixCoordinateFridaTveit commentedon Sep 25, 2017
Great idea, that would be much neater and gives a very clear error message! I'll open a PR to implement
toStringforMatrixCoordinate:)