-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented a reference version of Plucker/ByNameFieldPlucker #240
base: master
Are you sure you want to change the base?
Conversation
tests/generic_tests.rs
Outdated
@@ -85,3 +90,31 @@ fn test_mixed_conversions_round_trip() { | |||
let u_again: SavedUser = convert_from(au); | |||
assert_eq!(u_again, before) | |||
} | |||
|
|||
#[test] | |||
fn test_pluck() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the right place to write a test. I added it as a usage example, but I'll delete it if it's not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sending this. It's been a while since these were implemented so it could just be memory loss on my part but I'm a bit surprised that we didn't have this 😅
On the whole this makes sense, I just want some time to double check the above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a note to the changelog?
https://github.com/lloydmeta/frunk/blob/master/CHANGELOG.md#unreleased
I want to use Plucker for
&HCons<..., HCons<..., HCons<...>>>
. How about something like this?