Skip to content

Commit

Permalink
bump tests for FY24 SSURGO refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Oct 1, 2023
1 parent dc2d953 commit fb9944f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-SDA_query.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ test_that("SDA_query() works with multi-line records", {

# https://github.com/ncss-tech/soilDB/issues/28
expect_true(inherits(x.4, 'data.frame'))
expect_true(nrow(x.4) == 6)
expect_true(nrow(x.4) == 7)

})

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-get_SDA_hydric.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("get_SDA_hydric works", {

# check classification of mapunits
x.nonhydric <- subset(x, x$HYDRIC_RATING == "Nonhydric")
expect_equal(nrow(x.nonhydric), 175)
expect_equal(nrow(x.nonhydric), 174)
expect_true(all(x.nonhydric$hydric_majors == 0 & x.nonhydric$hydric_inclusions == 0))

# by mukey
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-get_SDA_interpretation.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
target_areas <- c("CA649", "CA630")
target_area_rows <- 223
target_area_rows_all <- 1031
target_area_rows <- 221
target_area_rows_all <- 1021

target_mukeys <- c(463263, 463264)

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-get_SDA_property.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
target_areas <- c("CA649", "CA630")

target_area_rows <- 223 # 1:1 with mukey
target_area_rows_all <- 1031 # 1:1 with component
target_area_rows_all_chorizon <- 3297 # 1:1 with chorizon
target_area_rows <- 221 # 1:1 with mukey
target_area_rows_all <- 1021 # 1:1 with component
target_area_rows_all_chorizon <- 3356 # 1:1 with chorizon

n_misc_area_rows <- 9
n_misc_area_rows_all <- 288
n_misc_area_rows_all <- 285
n_misc_area_rows_all_chorizon <- 19

target_mukeys <- c(463263, 463264)
Expand Down

0 comments on commit fb9944f

Please sign in to comment.