diff options
author | Max Kellermann <max@duempel.org> | 2014-03-01 07:25:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-01 07:49:13 +0100 |
commit | 4ba7427fa0f4c8495df331829eb67b27be9c9078 (patch) | |
tree | d34390e68bcd7a26145ea308ea0ee842d637ba32 /test/test_pcm_volume.cxx | |
parent | 9dc5335e3e4e07371cfae96eca2cb5b2a93c8dd2 (diff) |
util/{Const,Writable}Buffer: add operator[]
Diffstat (limited to 'test/test_pcm_volume.cxx')
-rw-r--r-- | test/test_pcm_volume.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pcm_volume.cxx b/test/test_pcm_volume.cxx index d08c7efb0..de880563d 100644 --- a/test/test_pcm_volume.cxx +++ b/test/test_pcm_volume.cxx @@ -61,8 +61,8 @@ TestVolume(G g=G()) const auto _dest = ConstBuffer<value_type>::FromVoid(dest); for (unsigned i = 0; i < N; ++i) { const auto expected = (_src[i] + 1) / 2; - CPPUNIT_ASSERT(_dest.data[i] >= expected - 4); - CPPUNIT_ASSERT(_dest.data[i] <= expected + 4); + CPPUNIT_ASSERT(_dest[i] >= expected - 4); + CPPUNIT_ASSERT(_dest[i] <= expected + 4); } pv.Close(); @@ -119,7 +119,7 @@ PcmVolumeTest::TestVolumeFloat() const auto _dest = ConstBuffer<float>::FromVoid(dest); for (unsigned i = 0; i < N; ++i) - CPPUNIT_ASSERT_DOUBLES_EQUAL(_src[i] / 2, _dest.data[i], 1); + CPPUNIT_ASSERT_DOUBLES_EQUAL(_src[i] / 2, _dest[i], 1); pv.Close(); } |