tests/testthat/test.World.R

test_that("redland library loads", {
    library(redland)
    # Add a line to this test to prevent 'Empty test' (skipped) msg.
    expect_true(require(redland))
})
test_that("World constructor", {
    library(redland)
    world <- new("World");
    expect_match(class(world), "World")
    expect_match(class(world@librdf_world), "_p_librdf_world_s")
    err <- try(freeWorld(world), silent=TRUE)
    expect_false(class(err) == "try-error")
    
})

Try the redland package in your browser

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

redland documentation built on May 31, 2023, 6:32 p.m.