Skip to content

Add unit tests for io::input_parsing - #25

Open
goelakash wants to merge 1 commit into
zachmatson:mainfrom
goelakash:tests/input-parsing
Open

Add unit tests for io::input_parsing#25
goelakash wants to merge 1 commit into
zachmatson:mainfrom
goelakash:tests/input-parsing

Conversation

@goelakash

Copy link
Copy Markdown
Contributor

Addresses #8

Summary

  • Adds 7 inline unit tests for core/src/io/input_parsing.rs
  • Covers: SimConfig roundtrip through output file headers, preservation of mutation rates and optional seed, error handling for empty input, version mismatch, missing second header line, and invalid JSON

Test plan

  • cargo test -p steps_core passes all tests

Tests cover SimConfig roundtrip through file headers, preservation of
mutation rates and seed, and error handling for empty input, version
mismatch, missing headers, and invalid JSON.
@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