Skip to content

Commit fc5c498

Browse files
authored
Fix test-function-apply_measures_to_blocks.R
1 parent b480475 commit fc5c498

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/testthat/test-function-apply_measures_to_blocks.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test_that("apply_measures_to_blocks() sets pvd (alone) correctly", {
3232

3333
# roof = 0.2 -> max. unpaved = 0.8
3434
blocks <- data.frame(total_area = 100, roof = 0.2, pvd = seq(0, 0.8, 0.1))
35-
result <- apply_measures(blocks, unpaved = 0.8)
35+
result <- apply_measures(blocks, global_share_unpaved = 0.8)
3636
expected <- blocks
3737
expected$pvd <- 0
3838
expect_equal(result, expected)
@@ -41,7 +41,7 @@ test_that("apply_measures_to_blocks() sets pvd (alone) correctly", {
4141

4242
# roof = 0 -> max. paved = 1
4343
blocks <- data.frame(total_area = 100, roof = 0, pvd = seq(0, 1, 0.1))
44-
result <- apply_measures(blocks, unpaved = 0)
44+
result <- apply_measures(blocks, global_share_unpaved = 0)
4545
expected <- blocks
4646
expected$pvd <- 1
4747
expect_equal(result, expected)

0 commit comments

Comments
 (0)