()
| 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() { |
nothing calls this directly
no test coverage detected