diff options
Diffstat (limited to 'test/test_lfringbuffer01.cpp')
-rw-r--r-- | test/test_lfringbuffer01.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_lfringbuffer01.cpp b/test/test_lfringbuffer01.cpp index e6a297c..06b03c3 100644 --- a/test/test_lfringbuffer01.cpp +++ b/test/test_lfringbuffer01.cpp @@ -113,7 +113,7 @@ class TestRingbuffer01 { REQUIRE_MSG("not empty "+rb.toString(), !rb.isEmpty()); std::vector<TrivialType> array(len); - REQUIRE_MSG("get-range of "+std::to_string(array.size())+" elem in "+rb.toString(), rb.get( &(*array.begin()), len) ); + REQUIRE_MSG("get-range of "+std::to_string(array.size())+" elem in "+rb.toString(), len==rb.get( &(*array.begin()), len, len) ); REQUIRE_MSG("size "+rb.toString(), preSize-len == rb.getSize()); REQUIRE_MSG("free slots after reading "+std::to_string(len)+": "+rb.toString(), rb.getFreeSlots()>= len); |