[wp-trac] [WordPress Trac] #30522: WP_UnitTestCase::assertEqualSets can pass incorrectly

WordPress Trac noreply at wordpress.org
Thu Nov 27 05:30:12 UTC 2014


#30522: WP_UnitTestCase::assertEqualSets can pass incorrectly
------------------------------+------------------------------
 Reporter:  dd32              |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by pento):

 [attachment:30522.diff] fixes the behaviour of `assertEqualSets()`, and
 adds `assertEqualSetsWithIndex()`, which does the same as
 `assertEqualSets()`, but maintains index association.

 Patch includes unit tests for both.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30522#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list