frame tests: tuple order
This commit is contained in:
parent
bae8cbbb14
commit
43f57fd545
1 changed files with 4 additions and 4 deletions
|
|
@ -439,13 +439,13 @@ fn the_last_good_frame_is_cleared_by_a_delete_and_a_switch_and_kept_through_a_fr
|
|||
// The tombstone keeps the version: the same document again, and a different one at it, change nothing shown.
|
||||
state.put(&good.provider_id, &good);
|
||||
let replay = run(&mut two, &mut state, input(at, 1.0));
|
||||
assert_eq!((replay.commands, codes(&replay)), (vec![], vec![]));
|
||||
assert_eq!((codes(&replay), replay.commands), (vec![], vec![]));
|
||||
state.put(&good.provider_id, &say(1, "other"));
|
||||
let refused = run(&mut two, &mut state, input(at, 1.0));
|
||||
assert_eq!((refused.commands, codes(&refused)), (vec![], vec![Code::StaleVersionIgnored]));
|
||||
assert_eq!((codes(&refused), refused.commands), (vec![Code::StaleVersionIgnored], vec![]));
|
||||
state.put(&good.provider_id, &wide(2));
|
||||
let out = run(&mut two, &mut state, input(at, 1.0));
|
||||
assert_eq!((out.commands, codes(&out)), (vec![], vec![Code::LayoutOutOfRange]));
|
||||
assert_eq!((codes(&out), out.commands), (vec![Code::LayoutOutOfRange], vec![]));
|
||||
|
||||
// Cleared by a switch.
|
||||
let other = {
|
||||
|
|
@ -461,7 +461,7 @@ fn the_last_good_frame_is_cleared_by_a_delete_and_a_switch_and_kept_through_a_fr
|
|||
run(&mut three, &mut state, input(at, 1.0));
|
||||
show(&mut three, &other);
|
||||
let switched = run(&mut three, &mut state, input(at, 1.0));
|
||||
assert_eq!((switched.commands, codes(&switched)), (vec![], vec![Code::LayoutOutOfRange]));
|
||||
assert_eq!((codes(&switched), switched.commands), (vec![Code::LayoutOutOfRange], vec![]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue