We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab8137f commit f792bbcCopy full SHA for f792bbc
1 file changed
src/simulation/investment/appraisal.rs
@@ -869,10 +869,11 @@ mod tests {
869
/// Test that appraisal outputs with zero capacity are filtered out during sorting.
870
#[rstest]
871
fn appraisal_sort_filters_zero_capacity_outputs(asset: Asset) {
872
- let metrics: Vec<Box<dyn MetricTrait>> = vec![
873
- Box::new(LCOXMetric::new(MoneyPerActivity(f64::NAN))),
874
875
+ let metric = LCOXMetric::new(MoneyPerActivity(1.0));
+ let metrics = [
+ Box::new(metric.clone()),
876
+ Box::new(metric),
877
];
878
879
// Create outputs with zero capacity
0 commit comments