EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE2

Add more tests for investment step

Open
#1,250 0 comments 0 reactions 0 assignees View on GitHub
good first issue muse xiii test
Dominant language
Rust
Stars
8
Forks
5
Avg merge
1d 2m
Merged PRs (30d)
37

Description

While there are some unit tests in `src/simulation/investment.rs`, there are also many functions without dedicated unit tests. This is particularly true for simple utility functions (e.g. `get_demand_portion_for_market`) with clear inputs and outputs. For more complex functions, we should at least consider how we might test them, e.g. by breaking them up.

Relying on regression tests to detect problems with this part of the code is not a robust approach.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.