HomePhabricator

Add "assert_same_keys()" to "libphutil/"

Description

Add "assert_same_keys()" to "libphutil/"

Summary:
This makes an implementation a little cleaner in an upcoming workboards diff.

This is like array_keys($x) === array_keys($y), but we get a slightly more useful error message, and we don't care about order.

Test Plan: Added and ran unit tests.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20268

Details

Provenance
epriestleyAuthored on Mar 11 2019, 4:43 AM
epriestleyPushed on Mar 12 2019, 7:42 PM
Reviewer
amckinley
Differential Revision
D20268: Add "assert_same_keys()" to "libphutil/"
Parents
rPHU6c64dce5f71c: Render query strings into concrete scalar "string" values immediately, not…
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22261
Build 30444: Run Core Tests