traitecoevo / plant

Trait-Driven Models of Ecology and Evolution :evergreen_tree:
https://traitecoevo.github.io/plant
53 stars 20 forks source link

Add missing tests for fitness & equilibrium functions #355

Closed dfalster closed 2 years ago

dfalster commented 2 years ago

Despite extensive tests, somehow various functions related to fitness and demographic equilibrium went untested. Presumably because they were slow. Lack of tests here enabled loss of functionality as we changed some of the interface.

This PR adds some tests on master, which will then be ported back to develop and updated as needed.

Here is the list of functions idnetified

Equilbirum.R

fitness_support

fitness_trait_space

Fitness