Skip to content

Commit 54b2b9e

Browse files
committed
chore: Auto-update from GitHub Actions
Run: https://github.com/igraph/rigraph/actions/runs/19003593435
1 parent 81421f4 commit 54b2b9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/testthat/test-community.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,11 @@ test_that("modularity() handles NA weights correctly", {
583583
mod_with_implicit_weights <- modularity(gw, membership_vec, weights = NULL)
584584
expect_equal(mod_with_implicit_weights, mod_with_weights)
585585

586-
mod_with_explicit_weights <- modularity(g, membership_vec, weights = E(gw)$weight)
586+
mod_with_explicit_weights <- modularity(
587+
g,
588+
membership_vec,
589+
weights = E(gw)$weight
590+
)
587591
expect_equal(mod_with_explicit_weights, mod_with_weights)
588592

589593
# Test that modularity works when all weights are NA

0 commit comments

Comments
 (0)