| 48 | } |
| 49 | |
| 50 | void TTempBufTest::TestOps() { |
| 51 | TTempBuf tmp(201); |
| 52 | |
| 53 | tmp.Proceed(100); |
| 54 | |
| 55 | UNIT_ASSERT_EQUAL(tmp.Current() - tmp.Data(), 100); |
| 56 | UNIT_ASSERT(tmp.Left() >= 101); |
| 57 | UNIT_ASSERT(tmp.Size() >= 201); |
| 58 | UNIT_ASSERT_EQUAL(tmp.Filled(), 100); |
| 59 | |
| 60 | tmp.Reset(); |
| 61 | |
| 62 | UNIT_ASSERT_EQUAL(tmp.Current(), tmp.Data()); |
| 63 | UNIT_ASSERT(tmp.Left() >= 201); |
| 64 | UNIT_ASSERT(tmp.Size() >= 201); |
| 65 | UNIT_ASSERT_EQUAL(tmp.Filled(), 0); |
| 66 | } |
| 67 | |
| 68 | void TTempBufTest::TestMoveCtor() { |
| 69 | TTempBuf src; |