test(commands): alias R routes like REDRAW
This commit is contained in:
parent
d2e18ead38
commit
319710f36b
1 changed files with 15 additions and 0 deletions
|
|
@ -1280,6 +1280,21 @@ mod tests {
|
||||||
assert_eq!(app.tabs[i].scene.block_epoch, block_before, "REDRAW must not regen blocks");
|
assert_eq!(app.tabs[i].scene.block_epoch, block_before, "REDRAW must not regen blocks");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn aliases_route_like_full_verbs() {
|
||||||
|
let mut full = fresh_app();
|
||||||
|
let mut short = fresh_app();
|
||||||
|
let _ = full.run_command_line("REDRAW");
|
||||||
|
let _ = short.run_command_line("R");
|
||||||
|
let i = full.active_tab;
|
||||||
|
assert!(short.tabs[i].scene.refresh_pending_any(), "'R' must trigger REDRAW");
|
||||||
|
assert_eq!(
|
||||||
|
short.tabs[i].scene.refresh_pending_any(),
|
||||||
|
full.tabs[i].scene.refresh_pending_any(),
|
||||||
|
"'R' and 'REDRAW' must leave the same refresh state"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn redrawall_marks_all_tiles() {
|
fn redrawall_marks_all_tiles() {
|
||||||
let mut app = fresh_app();
|
let mut app = fresh_app();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue