aboutsummaryrefslogtreecommitdiffstats
path: root/test/TestCircularBuffer.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-15 23:11:35 +0100
committerMax Kellermann <max@duempel.org>2014-03-15 23:12:20 +0100
commit3d4f588a7ff6b3c0953d706c526f4f391db9dfd2 (patch)
tree2d8bbb2b5831708f7a988cc6ef5221cb24f68db1 /test/TestCircularBuffer.hxx
parent8f74bf314d706abbe25a8dd23a6465c0227ffc71 (diff)
downloadmpd-3d4f588a7ff6b3c0953d706c526f4f391db9dfd2.tar.gz
mpd-3d4f588a7ff6b3c0953d706c526f4f391db9dfd2.tar.xz
mpd-3d4f588a7ff6b3c0953d706c526f4f391db9dfd2.zip
util/CircularBuffer: rename GetSize() to GetCapacity()
Diffstat (limited to '')
-rw-r--r--test/TestCircularBuffer.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TestCircularBuffer.hxx b/test/TestCircularBuffer.hxx
index e4285484b..f8fb95418 100644
--- a/test/TestCircularBuffer.hxx
+++ b/test/TestCircularBuffer.hxx
@@ -24,6 +24,8 @@ public:
int data[N];
CircularBuffer<int> buffer(data, N);
+ CPPUNIT_ASSERT_EQUAL(size_t(N), buffer.GetCapacity());
+
/* '.' = empty; 'O' = occupied; 'X' = blocked */
/* checks on empty buffer */