inst/tinytest/test_fertplan_E.R

# E tests -----------------------------------------------------------------

expect_equal(fertplan:::E_N_from_prev_crop("Girasole"), 0)
expect_error(fertplan:::E_N_from_prev_crop(Girasole), "object 'Girasole' not found")
expect_equal(fertplan:::E_N_from_prev_crop(c("Girasole", "Patata")), c(0, -35))
expect_warning(fertplan:::E_N_from_prev_crop(c("Gira", "Prati")), "one or more crops did not uniquely match table 05 crops")
mbask/fertplan documentation built on July 3, 2020, 12:01 p.m.