Skip to content

Commit

Permalink
Document junit-team#918
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Sep 16, 2014
1 parent 3d7dfb3 commit 3dbe046
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/ReleaseNotes4.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Version 4.11 added `Assert.assertEquals()` for `float` parameters with a delta,
`Assert.assertArrayEquals()` previously existed for all primitive array types, except `boolean[]`. This has now been added for `boolean[]`.


### [Pull request #918:](https://github.com/junit-team/junit/pull/918) Avoid potentially expensive reflection-based loop in Assert.assertArrayEquals()

In the usual case, where the array elements are in fact exactly equal, the potentially expensive reflection-based loop to compare them is avoided by using `Arrays.deepEquals()` first. The exact comparison is only executed when `deepEquals()` returns `false`.


# Test Runners


Expand Down

0 comments on commit 3dbe046

Please sign in to comment.