MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / test_split_lines_trailing_newline

Function test_split_lines_trailing_newline

src/text_input.rs:3408–3413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3406
3407 #[test]
3408 fn test_split_lines_trailing_newline() {
3409 let lines = split_lines("hello\n");
3410 assert_eq!(lines.len(), 2);
3411 assert_eq!(lines[0], (0, "hello"));
3412 assert_eq!(lines[1], (6, ""));
3413 }
3414
3415 #[test]
3416 fn test_move_up_down() {

Callers

nothing calls this directly

Calls 1

split_linesFunction · 0.85

Tested by

no test coverage detected