Add open_below_at_eof() test

This commit is contained in:
mars 2023-04-15 11:57:28 -04:00
parent bde9c9987a
commit 5aed7766c9
1 changed files with 8 additions and 0 deletions

View File

@ -213,6 +213,14 @@ mod tests {
assert_eq!(state.cursor.column, 0);
}
#[test]
fn open_below_at_eof() {
let mut state = state("test\n");
state.cursor.line = 1;
open_below(&mut state);
assert_eq!(state.cursor.line, 1);
}
#[test]
fn move_line_up_preserve_column() {
let mut state = state("test\n\ntest\n");