test: add tests for graph_from_biadjacency_matrix()#1520
test: add tests for graph_from_biadjacency_matrix()#1520aviator-app[bot] merged 6 commits intomainfrom
graph_from_biadjacency_matrix()#1520Conversation
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.
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.
…atrix() + improve error message
…tiple` and `weighted` are TRUE
c1f1133 to
be6845b
Compare
Also characterization tests as prep for #1518