tests/testthat/test-url.R

test_that("URL are cleaned", {
  expected <- "https://opal.example.org/ws/files/some/path/to/file"
  expect_equal(opalr:::.cleanUrl("https://opal.example.org/ws/files/some///path/to//file"), expected)
  expected <- "http://localhost:8080/ws/files/some/path/to/file"
  expect_equal(opalr:::.cleanUrl("http://localhost:8080/ws/files/some///path/to//file"), expected)
})

Try the opalr package in your browser

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

opalr documentation built on Sept. 18, 2024, 9:11 a.m.