SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [39/72]

SpicesTest::TEST_F ( runtime_memory_block_test ,
Initialize  )

Testing if initialize successfully.

Testing initialized container's size.

Testing initialized container's bytes.

Testing initialized container's address.

Testing initialized container's item_location.

Definition at line 43 of file RuntimeMemoryBlock_test.h.

43 {
44
46
50 EXPECT_EQ(m0.size(), 4);
51
55 EXPECT_EQ(m0.get_bytes(), 40);
56
60 EXPECT_EQ(m0.get_addr(), nullptr);
61
65 EXPECT_EQ(m0.item_location("1"), 0);
66 EXPECT_EQ(m0.item_location("2"), 4);
67 EXPECT_EQ(m0.item_location("3"), 12);
68 EXPECT_EQ(m0.item_location("4"), 24);
69 }
#define SPICESTEST_PROFILE_FUNCTION()