From: Joel Holdsworth Date: Sun, 16 Sep 2012 12:15:14 +0000 (+0100) Subject: Fixes to LargeData test checks X-Git-Tag: pulseview-0.1.0~299 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=39f6e56e9b72fc24abac56a12bc4701cb1c9571e Fixes to LargeData test checks --- diff --git a/test/logicdatasnapshot.cpp b/test/logicdatasnapshot.cpp index bd9aabfd..b56f98f0 100644 --- a/test/logicdatasnapshot.cpp +++ b/test/logicdatasnapshot.cpp @@ -257,15 +257,16 @@ BOOST_AUTO_TEST_CASE(LargeData) vector edges; s.get_subsampled_edges(edges, 0, Length-1, 1, 7); - BOOST_REQUIRE_EQUAL(edges.size(), 32); - for(int i = 0; i < 31; i++) + BOOST_CHECK_EQUAL(edges.size(), 32); + + for(int i = 0; i < edges.size() - 1; i++) { - BOOST_REQUIRE_EQUAL(edges[i].first, i * 32768); - BOOST_REQUIRE_EQUAL(edges[i].second, i & 1); + BOOST_CHECK_EQUAL(edges[i].first, i * 32768); + BOOST_CHECK_EQUAL(edges[i].second, i & 1); } - BOOST_REQUIRE_EQUAL(edges[31].first, 999999); + BOOST_CHECK_EQUAL(edges[31].first, 999999); } BOOST_AUTO_TEST_SUITE_END()