tests/testthat/test-marriagegraph.R

library(igraph)
this.marriage.graph <- marriage.graph()
test_that("we have the marriage graph", {
  expect_type(this.marriage.graph,"list")
})

test_that("we have specific edges", {
  expect_true(are_adjacent(this.marriage.graph, "Candiano","Candiano"))
})

test_that("family types are assigned", {
  expect_equal(V(this.marriage.graph)["Basadonna"]$family.type,"Nuove")
})

Try the dogesr package in your browser

Any scripts or data that you put into this service are public.

dogesr documentation built on June 25, 2025, 5:11 p.m.