| 347 | } |
| 348 | |
| 349 | void TestStreamReadTo2(IInputStream& input, const char* comment) { |
| 350 | TString s; |
| 351 | size_t i = 0; |
| 352 | while (input.ReadLine(s)) { |
| 353 | UNIT_ASSERT_C(i < Y_ARRAY_SIZE(Expected), comment); |
| 354 | UNIT_ASSERT_VALUES_EQUAL_C(s, Expected[i], comment); |
| 355 | ++i; |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | void TestStreamReadTo3(IInputStream& input, const char* comment) { |
| 360 | UNIT_ASSERT_VALUES_EQUAL_C(input.ReadLine(), "111a222b333c444d555e666f", comment); |