Fix unit tests

This commit is contained in:
SirLynix
2023-08-12 14:43:59 +02:00
parent 7e54b19eb5
commit 5a299da930
2 changed files with 10 additions and 5 deletions

View File

@@ -117,9 +117,13 @@ SCENARIO("Serialization", "[CORE][SERIALIZATION]")
{
context.stream->SetCursorPos(0);
Nz::OrientedBoxf zeroOBB = Nz::OrientedBoxf::Zero();
zeroOBB.Update(Nz::Vector3f::Zero());
Nz::OrientedBoxf copy(zeroOBB);
REQUIRE(Serialize(context, zeroOBB));
zeroOBB = Nz::OrientedBoxf(Nz::Boxf(1, 1, 1, 1, 1, 1)); // Random values
zeroOBB.Update(Nz::Vector3f::Zero());
REQUIRE(zeroOBB != copy);
context.stream->SetCursorPos(0);
REQUIRE(Unserialize(context, &zeroOBB));