| 14 | { |
| 15 | } |
| 16 | void TestReadToResult(char c, size_t expectedRetval, |
| 17 | const TString& expectedValue, |
| 18 | const TString& initValue = "") { |
| 19 | TString t = initValue; |
| 20 | UNIT_ASSERT_VALUES_EQUAL(MultiInput.ReadTo(t, c), expectedRetval); |
| 21 | UNIT_ASSERT_VALUES_EQUAL(t, expectedValue); |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | Y_UNIT_TEST(TestReadTo) { |