Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestguevarra committed May 16, 2020
1 parent c74e852 commit 1a34ebc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/testthat/test-03-combine.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
x <- combine_docs("resolution")

test_that("gets resolutions only", {
expect_equal(unique(x$type), "resolution")
})


test_that("output has 6 columns", {
expect_equal(ncol(x), 6)
})


x <- combine_iatf(res = 9:12)

test_that("resolutions 9 to 12 are retrieved", {
expect_equal(unique(x$id), 9:12)
})

test_that("source is iatf", {
expect_equal(unique(x$source), "IATF")
})


0 comments on commit 1a34ebc

Please sign in to comment.