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

Function test_wrap_lines_no_wrap_needed

src/text_input.rs:3508–3514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3506
3507 #[test]
3508 fn test_wrap_lines_no_wrap_needed() {
3509 let lines = wrap_lines("hello", 100.0, None, 16, &fixed_measure);
3510 assert_eq!(lines.len(), 1);
3511 assert_eq!(lines[0].text, "hello");
3512 assert_eq!(lines[0].global_char_start, 0);
3513 assert_eq!(lines[0].char_count, 5);
3514 }
3515
3516 #[test]
3517 fn test_wrap_lines_hard_break() {

Callers

nothing calls this directly

Calls 1

wrap_linesFunction · 0.85

Tested by

no test coverage detected