SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST() [30/59]

SpicesTest::TEST ( Math_test ,
UInt2  )

Testing UInt2.

Definition at line 19 of file Math_test.h.

19 {
20
22
23 Spices::UInt2 u0(1, 2);
24 Spices::UInt2 u1(1, 2);
25 Spices::UInt2 u2(1, 3);
26
27 EXPECT_EQ(u0 == u1, true);
28 EXPECT_EQ(u0 == u2, false);
29
30 std::unordered_map<Spices::UInt2, bool> maps;
31
32 maps[u0] = true;
33 EXPECT_EQ(maps.size(), 1);
34
35 maps[u1] = true;
36 EXPECT_EQ(maps.size(), 1);
37
38 maps[u2] = true;
39 EXPECT_EQ(maps.size(), 2);
40 }
#define SPICESTEST_PROFILE_FUNCTION()
double unsigned int
Definition Math.h:17

References Spices::UInt2::operator==(), and Spices::UInt2::UInt2().