Commit 4fa84d65 authored by niklas.baumgarten's avatar niklas.baumgarten

adapted tests

parent 7271536f
Pipeline #121264 passed with stages
in 11 minutes and 50 seconds
......@@ -7,13 +7,21 @@ TEST(TestParallel, TestIsInitialized) {
}
TEST(TestParallel, TestBroadcastDouble) {
if (PPM->Master()) PPM->BroadcastDouble(1.0);
if (!PPM->Master()) EXPECT_DOUBLE_EQ(PPM->BroadcastDouble(), 1.0);
double a;
if (PPM->Master()) PPM->Broadcast(1.0);
if (!PPM->Master()) {
PPM->Broadcast(a);
EXPECT_DOUBLE_EQ(a, 1.0);
}
}
TEST(TestParallel, TestBroadcastInt) {
if (PPM->Master()) PPM->BroadcastInt(1);
if (!PPM->Master()) EXPECT_EQ(PPM->BroadcastInt(), 1);
int a;
if (PPM->Master()) PPM->Broadcast(1);
if (!PPM->Master()) {
PPM->Broadcast(a);
EXPECT_EQ(a, 1);
}
}
struct BroadcastStruct {
......
Markdown is supported
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