X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2Fdata%2Flogicsegment.cpp;h=b5cf0ba45c85adad2b36b2a96870e34db5f75ae2;hp=b634257c17eaa278d261e560f7fb6a5c776c5cc6;hb=bb19aac49414cc772a2a1e52730cbb2ca24b425c;hpb=eb8269e3b5eebdd77e6a82d42bcfdfbc3f7613a9 diff --git a/test/data/logicsegment.cpp b/test/data/logicsegment.cpp index b634257c..b5cf0ba4 100644 --- a/test/data/logicsegment.cpp +++ b/test/data/logicsegment.cpp @@ -25,8 +25,10 @@ #include +#if 0 using pv::data::LogicSegment; using std::vector; +#endif // Dummy, remove again when unit tests are fixed. BOOST_AUTO_TEST_SUITE(DummyTestSuite) @@ -420,7 +422,7 @@ BOOST_AUTO_TEST_CASE(LongPulses) BOOST_CHECK_EQUAL(edges[0].second, true); BOOST_CHECK_EQUAL(edges[1].first, 16); BOOST_CHECK_EQUAL(edges[1].second, false); - + for (int i = 1; i < Cycles; i++) { BOOST_CHECK_EQUAL(edges[i+1].first, i * Period); BOOST_CHECK_EQUAL(edges[i+1].second, false);