mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
Fixed ref counts
p4#: 20890
This commit is contained in:
parent
973eb5c8f7
commit
d33a27a082
@ -40,10 +40,10 @@ TEST(RigGridCollection, BasicTest)
|
||||
|
||||
RigGridCollection gridCollection;
|
||||
gridCollection.addCase(eclipseCase.p());
|
||||
EXPECT_EQ(mainGridA->refCount(), 3);
|
||||
EXPECT_EQ(mainGridA->refCount(), 2);
|
||||
|
||||
cvf::ref<RigMainGrid> mainGridB = mainGridA;
|
||||
EXPECT_EQ(mainGridA->refCount(), 4);
|
||||
EXPECT_EQ(mainGridA->refCount(), 3);
|
||||
|
||||
cvf::ref<RigMainGrid> existingGrid = gridCollection.findEqualGrid(mainGridB.p());
|
||||
EXPECT_TRUE(existingGrid.notNull());
|
||||
|
Loading…
Reference in New Issue
Block a user