()
| 751 | |
| 752 | #[test] |
| 753 | fn test_force_trailing_newline() { |
| 754 | let mut editor = Editor::default(); |
| 755 | assert!(editor.text().is_empty()); |
| 756 | |
| 757 | editor.load(Some(TEST_FILENAME), "missing\nnewline at eof"); |
| 758 | assert_eq!("missing\nnewline at eof\n", editor.text()); |
| 759 | } |
| 760 | |
| 761 | #[test] |
| 762 | fn test_editing_with_previous_content_starts_on_top_left() { |