projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a126c27
)
Added tests for low scale
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 6 Oct 2012 11:15:48 +0000
(12:15 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 6 Oct 2012 12:56:26 +0000
(13:56 +0100)
test/logicdatasnapshot.cpp
patch
|
blob
|
history
diff --git
a/test/logicdatasnapshot.cpp
b/test/logicdatasnapshot.cpp
index 32bbe81aefbee117cfcfd0fc89d12d595aa05aad..b86066c77f75fa1536225be3a9b3e3645f61663d 100644
(file)
--- a/
test/logicdatasnapshot.cpp
+++ b/
test/logicdatasnapshot.cpp
@@
-255,8
+255,8
@@
BOOST_AUTO_TEST_CASE(LargeData)
}
//----- Test LogicDataSnapshot::get_subsampled_edges -----//
+ // Check in normal case
vector<LogicDataSnapshot::EdgePair> edges;
-
s.get_subsampled_edges(edges, 0, Length-1, 1, 7);
BOOST_CHECK_EQUAL(edges.size(), 32);
@@
-268,6
+268,12
@@
BOOST_AUTO_TEST_CASE(LargeData)
}
BOOST_CHECK_EQUAL(edges[31].first, 999999);
+
+ // Check in very low zoom case
+ edges.clear();
+ s.get_subsampled_edges(edges, 0, Length-1, 50e6f, 7);
+
+ BOOST_CHECK_EQUAL(edges.size(), 2);
}
BOOST_AUTO_TEST_CASE(Pulses)