Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 84df2a1

Browse files
committed
Add utils test
1 parent 0e86a3e commit 84df2a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/testthat/test-utils.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test_that("url_file_size() returns the correct sizes", {
2+
c(
3+
"https://ftp.ncbi.nlm.nih.gov/refseq/H_sapiens/annotation/GRCh38_latest/refseq_identifiers/GRCh38_latest_genomic.fna.gz",
4+
"https://ftp.ncbi.nlm.nih.gov/refseq/H_sapiens/annotation/GRCh37_latest/refseq_identifiers/GRCh37_latest_genomic.fna.gz"
5+
) |>
6+
url_file_size() |>
7+
expect_equal(c(
8+
0.973,
9+
0.944
10+
), tolerance = 0.001)
11+
})

0 commit comments

Comments
 (0)