tests/testthat/test-remove_node.R

test_that("remove_node works", {
  expect_equal(remove_node(1), "DELETE FROM edges WHERE source = \"1\" OR target = \"1\"; DELETE FROM nodes WHERE id = \"1\";")
})

Try the simplegraphdb package in your browser

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

simplegraphdb documentation built on March 12, 2021, 5:05 p.m.