Skip to content

fix: assert.MapSubset (or just support maps in assert.Subset)#1178

Merged
boyan-soubachov merged 2 commits intostretchr:masterfrom
OladapoAjala:1173-support-maps-in-assert-subset
Jun 28, 2022
Merged

fix: assert.MapSubset (or just support maps in assert.Subset)#1178
boyan-soubachov merged 2 commits intostretchr:masterfrom
OladapoAjala:1173-support-maps-in-assert-subset

Conversation

@OladapoAjala
Copy link
Contributor

Summary

Extended Subset & NotSubset to handle maps

Changes

Added some logic to check if each subsets key-value pair are present in the list.

Motivation

To handle maps in Subset & NotSubset

Related issues

#1173

@OladapoAjala OladapoAjala changed the title WIP: added map key value check in subset fix: assert.MapSubset (or just support maps in assert.Subset) #1173 Apr 20, 2022
@OladapoAjala OladapoAjala changed the title fix: assert.MapSubset (or just support maps in assert.Subset) #1173 fix: assert.MapSubset (or just support maps in assert.Subset) Apr 20, 2022
Copy link
Collaborator

@boyan-soubachov boyan-soubachov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for your contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants