Skip to content

Commit

Permalink
[Tests/unit/core] : 'Improve 'test_dataelement'
Browse files Browse the repository at this point in the history
  • Loading branch information
msieben committed Jul 3, 2024
1 parent a753895 commit 7c3adac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/unit/core/test_dataelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ namespace Core {
// ASSERT_TRUE(obj3.Shrink(0,0));
// EXPECT_FALSE(obj3.Copy(obj2));

ASSERT_TRUE(obj3.Shrink(obj3.AllocatedSize()-obj3.Size()+1,obj3.Size()-1));
// ASSERT_FALSE(obj3.Expand(obj3.AllocatedSize()-obj3.Size()-1,obj3.Size()+1)); // No internal storage, not the owner of the buffer
ASSERT_TRUE(obj3.Shrink(0, 1)); // Shrink by one elements
ASSERT_TRUE(obj3.Expand(1, 1)); // Expand by one element
// ASSERT_TRUE(obj3.Expand(obj3.AllocatedSize()-obj3.Size()-1,obj3.Size())); // No internal storage, but also no actual change in size
// ASSERT_TRUE(obj3.Expand(obj3.AllocatedSize()-obj3.Size()-1,obj3.AllocatedSize()));
// EXPECT_TRUE(obj3.Copy(obj2));
Expand Down

0 comments on commit 7c3adac

Please sign in to comment.