[domistream] Tests: first compile, clippy clean
Temporaries borrowed past their statement (control, media), clippy's is_multiple_of, needless index loop and type complexity. input.rs: the MOUSE_MOVE_ABS builder dropped the y field; the PROTOCOL.md cross-check would have caught it at runtime.
This commit is contained in:
@@ -248,9 +248,9 @@ fn paired_needs_exactly_five_answers() {
|
||||
#[test]
|
||||
fn a_bare_paired_answer_cannot_skip_any_step() {
|
||||
// `<paired>1</paired>` is all steps 4 and 5 need. Fed early, it must fail, never jump ahead.
|
||||
for steps in 0..3 {
|
||||
for (steps, state) in STATES.iter().enumerate().take(3) {
|
||||
let (mut s, mut rng, id) = session_after(steps);
|
||||
assert_eq!(s.state(), STATES[steps]);
|
||||
assert_eq!(s.state(), *state);
|
||||
expect_failure(&mut s, &id, &mut rng, 200, &resp_ok(), PairingFailure::MalformedAnswer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user