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'))
})

Try the botor package in your browser

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

botor documentation built on March 31, 2023, 9:53 p.m.