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

Function test_refill_and_print_multiple

std/src/console/format.rs:189–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188 #[test]
189 fn test_refill_and_print_multiple() {
190 let mut console = MockConsole::default();
191 let paragraphs = &["First paragraph", "Second", "Third. The. end."];
192 refill_and_print(&mut console, paragraphs, " ").unwrap();
193 assert_eq!(
194 &[
195 CapturedOut::Print(" First paragraph".to_owned()),
196 CapturedOut::Print("".to_owned()),
197 CapturedOut::Print(" Second".to_owned()),
198 CapturedOut::Print("".to_owned()),
199 CapturedOut::Print(" Third. The. end.".to_owned()),
200 ],
201 console.captured_out()
202 );
203 }
204
205 #[test]
206 fn test_refill_and_print_multiple_with_extra_indent() {

Callers

nothing calls this directly

Calls 1

refill_and_printFunction · 0.85

Tested by

no test coverage detected