tests/testthat/test-getMatchingParticipantIds.R

labbcat.url <- "https://labbcat.canterbury.ac.nz/demo"

test_that("getMatchingParticipantIds works", {
    skip_on_cran() # don't run tests that depend on external resource on CRAN
    if (!is.null(labbcatCredentials(labbcat.url, "demo", "demo"))) skip("Server not available")

    ids <- getMatchingParticipantIds(labbcat.url, "/^BR.+/.test(id)")
    expect_equal(length(ids), 5)
    expect_true("BR946_RodgerCurragh" %in% ids)
    expect_false("QB247_Jacqui" %in% ids)
})

Try the nzilbb.labbcat package in your browser

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

nzilbb.labbcat documentation built on July 26, 2023, 6:08 p.m.