Skip to content

Commit

Permalink
Refs #10370 Added unit test for ReserveMemoryForLoad.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbush committed Oct 15, 2014
1 parent bede8f8 commit c01e4f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Code/Mantid/Framework/MDEvents/test/MDBoxTest.h
Expand Up @@ -629,6 +629,15 @@ static void destroySuite(MDBoxTest * suite) { delete suite; }
TS_ASSERT_THROWS_NOTHING(box.unmask());
TSM_ASSERT("Should have been masked.", !box.getIsMasked());
}

void test_reserve()
{
BoxController_sptr sc( new BoxController(2));
MDBox<MDLeanEvent<2>,2> b(sc.get());

b.reserveMemoryForLoad(3);
TS_ASSERT_EQUALS( b.getEvents().capacity(), 3);
}
};


Expand Down

0 comments on commit c01e4f8

Please sign in to comment.