Files
pokerfreak/mutants.out/diff/src__icm__harville.rs_line_40_col_21.diff
T

22 lines
748 B
Diff

--- src/icm/harville.rs
+++ replace > with == in equities
@@ -32,17 +32,17 @@
taken.pop();
}
}
/// Expected prize per player. Places beyond the paid ones pay nothing; more payouts than
/// players are cut to the field. The sum of the result is the sum of the paid prizes.
/// Exact up to `MAX_PLAYERS`, sampled above.
pub fn equities(stacks: &[f64], payouts: &[f64]) -> Vec<f64> {
- if stacks.len() > MAX_PLAYERS {
+ if stacks.len() == /* ~ changed by cargo-mutants ~ */ MAX_PLAYERS {
return sampled_equities(stacks, payouts);
}
let mut out = vec![0.0; stacks.len()];
let paid = &payouts[..payouts.len().min(stacks.len())];
expand(stacks, &mut Vec::new(), 1.0, paid, &mut out);
out
}