1 #include <gtest/gtest.h>
13 EXPECT_FLOAT_EQ(0, myMaterial.
density);
14 EXPECT_FLOAT_EQ(0, myMaterial.
Z);
15 EXPECT_FLOAT_EQ(0, myMaterial.
A);
17 EXPECT_FLOAT_EQ(0, myMaterial.
mEE);
22 EXPECT_FLOAT_EQ(1, myMaterial.
density);
23 EXPECT_FLOAT_EQ(2, myMaterial.
Z);
24 EXPECT_FLOAT_EQ(3, myMaterial.
A);
26 EXPECT_FLOAT_EQ(5, myMaterial.
mEE);
30 Material myMaterial01(0, 0, 0, 0, 0);
31 Material myMaterial02(1, 2, 3, 4, 5);
32 Material myMaterial03(1, 2, 3, 4, 5);
34 EXPECT_FALSE(myMaterial01 == myMaterial02);
35 EXPECT_TRUE(myMaterial02 == myMaterial02);
36 EXPECT_TRUE(myMaterial02 == myMaterial03);
38 EXPECT_TRUE(myMaterial01 != myMaterial02);
39 EXPECT_FALSE(myMaterial02 != myMaterial02);
40 EXPECT_FALSE(myMaterial02 != myMaterial03);