tests/testthat/test-getDictionaries.R

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

test_that("getDictionaries 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")

    dictionaries <- getDictionaries(labbcat.url)

    expect_true("CELEX-EN" %in% names(dictionaries))
    expect_true("Phonology (wordform)" %in% dictionaries$`CELEX-EN`)
})

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.