tests/testthat/test-utilities.R

context("utilities")

test_that("we can correctly set prefix formats", {

  uri_prefix(  "http://namespace.com/" )
  uri_prefix(  "http://namespace.com/terms#" )
  
  expect_match( uri_prefix( "schema" ), "schema:")
  expect_match( uri_prefix( "schema:" ), "schema:") 
})
ropensci/rdflib documentation built on Jan. 19, 2024, 4:57 a.m.