Fixed a unit test bug - the dbCell test was working by coincidence on other systems.

This commit is contained in:
Matthias Koefferlein 2017-12-30 16:46:49 -08:00
parent 063811edc4
commit 167df7eae6
1 changed files with 5 additions and 5 deletions

View File

@ -570,13 +570,13 @@ TEST(2)
}
c0.erase (i4);
EXPECT_EQ (c2s_unsorted(c0), "5[r0 *1 0,0]#2,3[r0 *1 0,0]#13");
EXPECT_EQ (c0.cell_instances (), size_t (2));
c0.erase (i5);
EXPECT_EQ (c2s_unsorted(c0), "5[r0 *1 0,0]#2,1[r0 *1 0,0]#1");
EXPECT_EQ (c0.cell_instances (), size_t (2));
c0.erase (i4);
EXPECT_EQ (c2s_unsorted(c0), "5[r0 *1 0,0]#2");
EXPECT_EQ (c0.cell_instances (), size_t (1));
// not yet: EXPECT_EQ (c0.empty (), false);
// Not yet: EXPECT_EQ (c0.empty (), false);
// note: double delete is not supported in non-editable mode
if (db::default_editable_mode ()) {
@ -608,7 +608,7 @@ TEST(2)
c0.erase (i3);
EXPECT_EQ (c2s_unsorted(c0), "");
EXPECT_EQ (c0.cell_instances (), size_t (0));
// not yet: EXPECT_EQ (c0.empty (), true);
// Not yet: EXPECT_EQ (c0.empty (), true);
}
TEST(3)