Skip to content

Fix bug in missing_some#22

Merged
jamsesso merged 1 commit intojamsesso:masterfrom
magnarn:magnarn/bugfix/missing-some
Jan 5, 2022
Merged

Fix bug in missing_some#22
jamsesso merged 1 commit intojamsesso:masterfrom
magnarn:magnarn/bugfix/missing-some

Conversation

@magnarn
Copy link
Copy Markdown
Contributor

@magnarn magnarn commented Dec 30, 2021

When missing_some is applied to a null data object, it would return
all its arguments, including the threshold. According to the spec, it
should return an array of the missing keys.

Also, if the threshold is 0, it should always return an empty list,
even when data is null.

@magnarn magnarn force-pushed the magnarn/bugfix/missing-some branch from 59a4ba3 to 42d6df0 Compare December 30, 2021 13:11
When missing_some is applied to a `null` data object, it would return
all its arguments, including the threshold. According to the spec, it
should return an array of the missing keys.

Also, if the threshold is 0, it should always return an empty list,
even when data is `null`.
@magnarn magnarn force-pushed the magnarn/bugfix/missing-some branch from 42d6df0 to b7d7feb Compare December 30, 2021 13:12
@jamsesso
Copy link
Copy Markdown
Owner

jamsesso commented Jan 5, 2022

Thanks a lot!

@jamsesso jamsesso merged commit ea9e513 into jamsesso:master Jan 5, 2022
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