-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
test: add tests for graph_from_biadjacency_matrix()
#1520
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
e16ab0a
to
0c7968a
Compare
Based on the coverage results https://app.codecov.io/gh/igraph/rigraph/pull/1520/blob/R/incidence.R I need to add weights to the cases that I thought would cover the modes for For |
0c7968a
to
7f7b02c
Compare
7f7b02c
to
5aafbf8
Compare
I suggest adding an error when setting both to true. This is not an issue in the C core, as we have separate functions for the unweighted and weighted cases, and only the unweighted function has a |
local_igraph_options(print.id = FALSE) | ||
withr::local_seed(42) | ||
|
||
inc <- matrix(sample(0:1, 15, repl = TRUE), 3, 5) |
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.
Same comment about weights as before. Have a diversity of weights. Have at least two different kinds of weights (sample(0:2)
), but ideally have non-integer weights as well. It's a question of how much time you want to dedicate to testing. There are lots of cases.
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.
…atrix() + improve error message
…tiple` and `weighted` are TRUE
c1f1133
to
be6845b
Compare
Also characterization tests as prep for #1518