Cleaned up vector unit test useless lines

This commit is contained in:
2026-02-14 11:30:02 -05:00
parent 96169123dd
commit be113fa89d

View File

@@ -183,9 +183,14 @@ namespace Juliet
int Value; int Value;
bool MovedFrom = false; bool MovedFrom = false;
MoveOnly(int v) : Value(v) {} MoveOnly(int v)
: Value(v)
{
}
MoveOnly(const MoveOnly&) = delete; // No copy MoveOnly(const MoveOnly&) = delete; // No copy
[[maybe_unused]] MoveOnly(MoveOnly&& other) noexcept : Value(other.Value), MovedFrom(false) [[maybe_unused]] MoveOnly(MoveOnly&& other) noexcept
: Value(other.Value)
, MovedFrom(false)
{ {
other.MovedFrom = true; other.MovedFrom = true;
other.Value = -1; other.Value = -1;
@@ -240,11 +245,6 @@ namespace Juliet
vec.Resize(4); vec.Resize(4);
Assert(vec.Size() == 4); Assert(vec.Size() == 4);
Assert(vec[0] == 1); Assert(vec[0] == 1);
// Verify new elements are NOT necessarily zero-initialized (garbage or previous memory).
// We only check size and preserved data.
// Assert(vec[1] == 0);
// Assert(vec[2] == 0);
// Assert(vec[3] == 0);
vec.Destroy(); vec.Destroy();
} }