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

Function test_refill_and_print_one

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

Source from the content-addressed store, hash-verified

179
180 #[test]
181 fn test_refill_and_print_one() {
182 let mut console = MockConsole::default();
183 let paragraphs = &["First paragraph"];
184 refill_and_print(&mut console, paragraphs, " ").unwrap();
185 assert_eq!(&[CapturedOut::Print(" First paragraph".to_owned())], console.captured_out());
186 }
187
188 #[test]
189 fn test_refill_and_print_multiple() {

Callers

nothing calls this directly

Calls 1

refill_and_printFunction · 0.85

Tested by

no test coverage detected