Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MansMeg committed Sep 15, 2023
1 parent 9093ce8 commit dd89b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RPackage/tests/testthat/test-polls_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ test_that(desc="throw warnings",{
tmp_dat <- tmp_dat[1:2,]
if(any(is.na(tmp_dat$n))) {
if(!ignore_column_house_PublDate("n", houses[i], tmp_dat$PublDate[1])){
stop("Polls from ", houses[i], " have missing 'n'.")
warning("Polls from ", houses[i], " have missing 'n'.")
}
} else {
if(tmp_dat$n[1] == tmp_dat$n[2]) stop("Last two polls from ", houses[i], " have identical 'n'.")
if(tmp_dat$n[1] == tmp_dat$n[2]) warning("Last two polls from ", houses[i], " have identical 'n'.")
}
for(j in seq_along(parties)){
if(ignore_column_house_PublDate(parties[j], houses[i], tmp_dat$PublDate[1])) next
Expand Down

0 comments on commit dd89b47

Please sign in to comment.