Commit 2200bca1 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

adding check for M

parent e14325f8
......@@ -46,6 +46,10 @@ TEST_F(TestSampleCounter, TestWith8Samples) {
EXPECT_EQ(ctr.dMComm, 8);
EXPECT_EQ(ctr.commSplit, 0);
}
pout << "M before update " << ctr.M << endl;
ctr.Update();
pout << "M after update " << ctr.M << endl;
EXPECT_EQ(ctr.M, 8);
}
TEST_F(TestSampleCounter, TestWith4Samples) {
......@@ -70,6 +74,10 @@ TEST_F(TestSampleCounter, TestWith4Samples) {
EXPECT_EQ(ctr.dMComm, 4);
EXPECT_EQ(ctr.commSplit, 0);
}
pout << "M before update " << ctr.M << endl;
ctr.Update();
pout << "M after update " << ctr.M << endl;
EXPECT_EQ(ctr.M, 4);
}
#endif //TESTSAMPLECOUNTER_HPP
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment