From 167df7eae6389e54868409947dd797d5632a5ca6 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 30 Dec 2017 16:46:49 -0800 Subject: [PATCH] Fixed a unit test bug - the dbCell test was working by coincidence on other systems. --- src/db/unit_tests/dbCell.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/db/unit_tests/dbCell.cc b/src/db/unit_tests/dbCell.cc index 4461dd7ae..d4f6c9658 100644 --- a/src/db/unit_tests/dbCell.cc +++ b/src/db/unit_tests/dbCell.cc @@ -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)