HomePhabricator

Add "assert_same_keys()" to "libphutil/"

Authored by epriestley on Mon, Mar 11, 4:43 AM.

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

Committed
epriestleyTue, Mar 12, 7:42 PM
Pushed
epriestleyTue, Mar 12, 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
References
HEAD -> master
Build Status
Buildable 22261
Build 30444: Run Core Tests