inst/tests/testthat/test-checkmate.R

library(botor)
library(testthat)

context('custom checkmate extensions')
test_that('S3 path', {
    expect_true(check_s3_uri('s3://foobar'))
    expect_true(check_s3_uri('s3://34foobar'))
    expect_error(assert_s3_uri('foobar'))
    expect_error(assert_s3_uri('https://foobar'))
    expect_error(assert_s3_uri('s3://..foobar'))
})
daroczig/botor documentation built on March 15, 2023, 12:23 p.m.