[wp-trac] [WordPress Trac] #30522: WP_UnitTestCase::assertEqualSets can pass incorrectly
WordPress Trac
noreply at wordpress.org
Mon Dec 1 05:01:30 UTC 2014
#30522: WP_UnitTestCase::assertEqualSets can pass incorrectly
------------------------------+---------------------
Reporter: dd32 | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+---------------------
Changes (by pento):
* owner: => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30687"]:
{{{
#!CommitTicketReference repository="" revision="30687"
Unit Tests: The `assertEqualSets()` helper was returning true for some
sets that were not equal. `assertEqualSets()` now behaves correctly, and
the new `assertEqualSetsWithIndex()` helper also checks that the array
indexes are the same.
Fixes #30522.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30522#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list