| 561 | } |
| 562 | |
| 563 | void TestList() { |
| 564 | TBufferStream s; |
| 565 | |
| 566 | TList<int> list = {0, 1, 10}; |
| 567 | Save(&s, list); |
| 568 | |
| 569 | list.clear(); |
| 570 | Load(&s, list); |
| 571 | |
| 572 | UNIT_ASSERT_VALUES_EQUAL(list.size(), 3); |
| 573 | UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 0), 0); |
| 574 | UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 1), 1); |
| 575 | UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 2), 10); |
| 576 | } |
| 577 | |
| 578 | void TestTuple() { |
| 579 | TBufferStream s; |