Skip to content

Commit

Permalink
Update test_ehr_simulation.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rosap authored Jan 5, 2017
1 parent 6af519b commit 477d79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_ehr_simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_that("Patient table is sane", {
expect_is(patient$tod, "Date")
expect_is(patient$deathdate, "Date")
expect_true(all(patient$yob >= as.integer(format(as.Date(ehr_def$start_date), format = "%y")) - 1800))
expect_more_than(sum(patient[,names(ehr_def$patient$comorbidity$codes)]), 0)
expect_gt(sum(patient[,names(ehr_def$patient$comorbidity$codes)]), 0)
expect_equal(length(unique(patient$patid)), nrow(patient))
})

Expand Down

0 comments on commit 477d79e

Please sign in to comment.