SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [34/72]

SpicesTest::TEST_F ( runtime_memory_block_test ,
AddElement  )

Testing if Add element successfully.

Testing initialized container's size.

Testing initialized container's size.

Testing initialized container's bytes.

Testing initialized container's address.

Testing initialized container's item_location.

Definition at line 74 of file RuntimeMemoryBlock_test.h.

74 {
75
77
81 m0.add_element("5", "float");
82 m0.add_element("6", "float2");
83
87 EXPECT_EQ(m0.size(), 6);
88
92 EXPECT_EQ(m0.get_bytes(), 52);
93
97 EXPECT_EQ(m0.get_addr(), nullptr);
98
102 EXPECT_EQ(m0.item_location("5"), 40);
103 EXPECT_EQ(m0.item_location("6"), 44);
104 }
#define SPICESTEST_PROFILE_FUNCTION()