Skip to content

Commit

Permalink
Update test_get_obs_txt.R
Browse files Browse the repository at this point in the history
  • Loading branch information
GinerM committed Jun 20, 2023
1 parent 14959c9 commit 64fc989
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test_get_obs_txt.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ version_num <- SticsRFiles:::get_version_num()
context("Counting rows of climate file")

workspace_path <- get_examples_path("obs", stics_version = stics_version)
obs_table <- SticsRFiles:::get_obs_txt(file.path(workspace_path,"simple_example"))
#obs_table <- SticsRFiles:::get_obs_txt(file.path(workspace_path,"simple_example"))
test_that("Count rows climate file", {
expect_equal(unlist(dplyr::count(obs_table),use.names=FALSE),37)
#expect_equal(unlist(dplyr::count(obs_table),use.names=FALSE),37)
expect_equal(unlist(dplyr::count(get_obs_txt(file.path(workspace_path,"simple_example"))),use.names=FALSE),37)
expect_warning(unlist(get_obs_txt(file.path(workspace_path,"simple_example"),mixed=TRUE)))
})

0 comments on commit 64fc989

Please sign in to comment.