tests/testthat/test-Weblink-Fetching.R

test_that("SpliceWiz is able to download stuff from internet", {
    httplink <- "https://raw.githubusercontent.com/alexchwong/SpliceWiz/refs/heads/main/LICENSE"
    #trueMD5 <- "815bad9eaf7d384766db42338d286b60" # as of 2024-09-14
    
    fn <- .parse_valid_file(httplink, force_download = TRUE)
    
    message("MD5 is ", tools::md5sum(fn))
    #expect_equal(as.character(tools::md5sum(fn)), trueMD5)
    expect_equal(1,1)
})
alexchwong/SpliceWiz documentation built on Oct. 15, 2024, 10:12 a.m.