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:") 
})
cboettig/rdflib documentation built on Jan. 17, 2024, 1:07 p.m.