Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ehinman committed Aug 15, 2023
1 parent 618cebb commit 44c8ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-ResultFlagsIndependent.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test_that("Imprecise_lessthan3decimaldigits works again", {
})

test_that("No NA's in independent flag columns", {
testdat <- TADA_RandomTestingSet()
testdat <- TADA_RandomNationalTestingSet()
testdat <- TADA_ConvertResultUnits(testdat, transform = TRUE)

testdat <- suppressWarnings(TADA_FlagMethod(testdat, clean = FALSE, flaggedonly = FALSE))
Expand All @@ -80,7 +80,7 @@ test_that("No NA's in independent flag columns", {
})

test_that("TADA_FindPotentialDuplicates functions do not grow dataset", {
testdat <- TADA_RandomTestingSet()
testdat <- TADA_RandomNationalTestingSet()
testdat1 <- TADA_FindPotentialDuplicatesSingleOrg(testdat)
testdat2 <- TADA_FindPotentialDuplicatesMultipleOrgs(testdat)
expect_true(dim(testdat)[1] == dim(testdat1)[1])
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-Transformations.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that("harmonization works", {
dat <- TADA_RandomTestingSet()
dat <- TADA_RandomNationalTestingSet()
dat <- subset(dat, !is.na(dat$TADA.ResultMeasureValue))
dat <- TADA_FlagFraction(dat, clean = TRUE)
dat <- TADA_FlagResultUnit(dat, clean = "invalid_only")
Expand Down

0 comments on commit 44c8ab8

Please sign in to comment.