small sanity checks on Ordering

release/4.3a0
Alex Cunningham 2012-08-10 16:10:31 +00:00
parent a025b377ec
commit 2e4697e7e1
1 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,11 @@ TEST( testOrdering, simple_modifications ) {
CHECK_EXCEPTION(ordering.pop_back(x1), std::invalid_argument);
// reassemble back make the ordering 1, 2, 4, 3
ordering.push_back(x4);
ordering.push_back(x3);
EXPECT_LONGS_EQUAL(2, ordering.push_back(x4));
EXPECT_LONGS_EQUAL(3, ordering.push_back(x3));
EXPECT_LONGS_EQUAL(2, ordering[x4]);
EXPECT_LONGS_EQUAL(3, ordering[x3]);
// verify
Ordering expectedFinal;