-
-
Notifications
You must be signed in to change notification settings - Fork 79
feat(types): Argument coercion into HashSet/BTreeSet #493 #598
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
feat(types): Argument coercion into HashSet/BTreeSet #493 #598
Conversation
Pull Request Test Coverage Report for Build 20234104119Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
be00b05 to
3a743b0
Compare
3a743b0 to
455b192
Compare
|
Thanks. Can you add unit tests? |
|
I am not sure what should be tested here. |
ptondereau
left a comment
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 the implementation! Just some comments.
for example: #[test]
fn test_hash_table_try_from_hash_set() {
Embed::run(|| {
let mut set = HashSet::new();
set.insert("one");
let ht: ZBox<ZendHashTable> = set.try_into().unwrap();
assert_eq!(ht.len(), 1);
assert!(ht.get(0).is_some());
});
} |
93b1a3c to
99a40db
Compare
99a40db to
d36bd8d
Compare
|
@ptondereau @Xenira take a look pls =) |
ptondereau
left a comment
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.
LGTM thanks
Description
Implements #493