Skip to content

Add unit tests for cfg module - #27

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

Add unit tests for cfg module#27
goelakash wants to merge 1 commit into
zachmatson:mainfrom
goelakash:tests/cfg

Conversation

@goelakash

Copy link
Copy Markdown
Contributor

Addresses #8

Summary

  • Adds 4 inline unit tests for core/src/cfg.rs
  • Covers: CLI default argument parsing, custom argument parsing, serde serialization/deserialization roundtrip, optional field handling (seed, fixed_deleterious_mutation_size)

Test plan

  • cargo test -p steps_core passes all tests

Tests cover CLI argument parsing with defaults and custom values,
and serde serialization/deserialization roundtrips for SimConfig
including optional fields (seed, fixed_deleterious_mutation_size).
@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