Skip to content

Add unit tests for sim::mechanics - #22

Open
goelakash wants to merge 1 commit into
zachmatson:mainfrom
goelakash:tests/mechanics
Open

Add unit tests for sim::mechanics#22
goelakash wants to merge 1 commit into
zachmatson:mainfrom
goelakash:tests/mechanics

Conversation

@goelakash

Copy link
Copy Markdown
Contributor

Addresses #8

Summary

  • Adds 14 inline unit tests for core/src/sim/mechanics.rs
  • Covers: phase_1_doublings_required for various dilution factors, next_float edge cases (positive, zero, NaN, infinity), beneficial/deleterious mutation effects on fitness and lambda, growth_phase_1 population doubling

Test plan

  • cargo test -p steps_core passes all tests

Tests cover phase_1_doublings_required for various dilution factors,
next_float edge cases, beneficial and deleterious mutation effects
on fitness and lambda, and growth_phase_1 population doubling.
@goelakash

Copy link
Copy Markdown
Contributor Author

@zachmatson this is ready for review when you get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant