SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [40/72]

SpicesTest::TEST_F ( runtime_memory_block_test ,
ItemLocation  )

Testing if ItemLocation test successfully.

item location in valid item.

item location in unvalid item.

Definition at line 212 of file RuntimeMemoryBlock_test.h.

212 {
213
215
219 EXPECT_EQ(m0.item_location("1"), 0 );
220 EXPECT_EQ(m0.item_location("2"), 4 );
221 EXPECT_EQ(m0.item_location("3"), 12);
222 EXPECT_EQ(m0.item_location("4"), 24);
223
227 EXPECT_EQ(m0.item_location("5"), UINT32_MAX);
228 EXPECT_EQ(m0.item_location("6"), UINT32_MAX);
229 EXPECT_EQ(m0.item_location("7"), UINT32_MAX);
230 EXPECT_EQ(m0.item_location("8"), UINT32_MAX);
231 }
#define SPICESTEST_PROFILE_FUNCTION()