diff --git a/src/actions.rs b/src/actions.rs index bb1c9a2..7caf118 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -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");