]> sigrok.org Git - pulseview.git/commitdiff
Fixes to LargeData test checks
authorJoel Holdsworth <redacted>
Sun, 16 Sep 2012 12:15:14 +0000 (13:15 +0100)
committerJoel Holdsworth <redacted>
Sun, 30 Sep 2012 19:27:59 +0000 (20:27 +0100)
test/logicdatasnapshot.cpp

index bd9aabfd493150b06be7cae1b23bba069145ebef..b56f98f098b6b1694eddc47c902527f09867c2f0 100644 (file)
@@ -257,15 +257,16 @@ BOOST_AUTO_TEST_CASE(LargeData)
        vector<LogicDataSnapshot::EdgePair> 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()