projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2bcbe5
)
Fixes to LargeData test checks
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 16 Sep 2012 12:15:14 +0000
(13:15 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 30 Sep 2012 19:27:59 +0000
(20:27 +0100)
test/logicdatasnapshot.cpp
patch
|
blob
|
history
diff --git
a/test/logicdatasnapshot.cpp
b/test/logicdatasnapshot.cpp
index bd9aabfd493150b06be7cae1b23bba069145ebef..b56f98f098b6b1694eddc47c902527f09867c2f0 100644
(file)
--- a/
test/logicdatasnapshot.cpp
+++ b/
test/logicdatasnapshot.cpp
@@
-257,15
+257,16
@@
BOOST_AUTO_TEST_CASE(LargeData)
vector<LogicDataSnapshot::EdgePair> edges;
s.get_subsampled_edges(edges, 0, Length-1, 1, 7);
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()
}
BOOST_AUTO_TEST_SUITE_END()