MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_force_trailing_newline

Function test_force_trailing_newline

repl/src/editor.rs:753–759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected