Fix documentation for module: Core

Former-commit-id: da32124ed87931c0b574bcad2b1ab44825e756bc
This commit is contained in:
Gawaboumga
2016-05-30 14:09:51 +02:00
parent 9eae42f72b
commit 6b1cfca761
11 changed files with 421 additions and 25 deletions

View File

@@ -213,4 +213,24 @@ SCENARIO("ByteArray", "[CORE][BYTEARRAY]")
}
}
}
GIVEN("A default byte array")
{
Nz::ByteArray defaultByteArray;
WHEN("We resize")
{
Nz::UInt64 oldSize = defaultByteArray.GetSize();
REQUIRE(oldSize == 0);
defaultByteArray.Resize(10);
THEN("Capacity has increased")
{
REQUIRE(defaultByteArray[oldSize] == 0);
REQUIRE(defaultByteArray.GetCapacity() >= 10);
REQUIRE(defaultByteArray.GetSize() == 10);
}
}
}
}