tests/testthat/test-isRemote.R

context('isRemote')

test_that('isRemote', {
    expect_true(mzID:::isRemote("http://www.google.com"))
    expect_true(mzID:::isRemote("https://www.google.com"))
    expect_true(mzID:::isRemote("ftp://kernel.org"))
    expect_true(mzID:::isRemote("ftps://kernel.org"))

    expect_false(mzID:::isRemote("/home/foo/bar.txt"))
    expect_false(mzID:::isRemote("C:\\Windows\\bar.txt"))
})

Try the mzID package in your browser

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

mzID documentation built on Nov. 8, 2020, 8:08 p.m.