tiers test: 123.05 formats as 123.0 (the binary value sits under the half)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-08 09:12:20 +00:00
parent 03b2648479
commit d6765ecece

View file

@ -1979,7 +1979,7 @@ mod tests {
assert_eq!(j["w"], 221.0);
assert_eq!(j["mhs"], 122.06);
assert_eq!(tier_set_line("NVIDIA GeForce RTX 5090", "balanced", &t[1].row, 298.4), "Ember Tune set NVIDIA GeForce RTX 5090 to Balanced: 122.1 MH/s at 221 W, 77 W under stock");
assert_eq!(tier_set_line("card", "max", &t[2].row, 298.4), "Ember Tune set card to Max: 123.1 MH/s at 302 W");
assert_eq!(tier_set_line("card", "max", &t[2].row, 298.4), "Ember Tune set card to Max: 123.0 MH/s at 302 W");
let st = stock_tier(&curve_row(0, 100, 202.0, 18.9));
assert_eq!((st.len(), st[0].id, st[0].source), (1, "max", "stock"));
}