tests/testthat/test_QueryGroup.R

# Testing QueryGroup
test_that("QueryGroup returns correct structure", {
  queries <- list(DefaultOperator("4HHB"), ExactMatchOperator("rcsb_entry_info.resolution_combined", "2.0"))
  logical_operator <- "AND"
  result <- QueryGroup(queries, logical_operator)
  expect_equal(result$type, "group")
  expect_equal(length(result$nodes), length(queries))
})

Try the rPDBapi package in your browser

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

rPDBapi documentation built on Nov. 5, 2025, 6:38 p.m.