UnitTests: Fix errors
Former-commit-id: 7d338bd57e8a083e63c5f6387ff37c81109903ed
This commit is contained in:
@@ -7,7 +7,7 @@ SCENARIO("Bitset", "[CORE][BITSET]")
|
||||
{
|
||||
GIVEN("Allocate and constructor")
|
||||
{
|
||||
Nz::Bitset<> bitset(3);
|
||||
Nz::Bitset<> bitset(3, false);
|
||||
|
||||
THEN("Capacity is 3 and size is 3")
|
||||
{
|
||||
|
||||
@@ -78,9 +78,9 @@ SCENARIO("File", "[CORE][FILE]")
|
||||
|
||||
THEN("The relative positioning should disappear")
|
||||
{
|
||||
Nz::String containingNoMoreDot = "/resources/Spaceship/spaceship.mtl";
|
||||
REQUIRE(Nz::File::AbsolutePath(containingDot) == containingNoMoreDot);
|
||||
REQUIRE(Nz::File::AbsolutePath(containingDoubleDot) == containingNoMoreDot);
|
||||
Nz::String containingNoMoreDot = Nz::File::NormalizePath("/resources/Spaceship/spaceship.mtl");
|
||||
REQUIRE(Nz::File::AbsolutePath(containingDot).EndsWith(containingNoMoreDot));
|
||||
REQUIRE(Nz::File::AbsolutePath(containingDoubleDot).EndsWith(containingNoMoreDot));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <Nazara/Core/Serialization.hpp>
|
||||
#include <Nazara/Core/SerializationContext.hpp>
|
||||
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/MemoryView.hpp>
|
||||
@@ -35,6 +35,7 @@ SCENARIO("Serialization", "[CORE][SERIALIZATION]")
|
||||
{
|
||||
context.stream->SetCursorPos(0);
|
||||
REQUIRE(Serialize(context, true));
|
||||
context.FlushBits(); //< Don't forget to flush bits (it is NOT done by the stream)
|
||||
context.stream->SetCursorPos(0);
|
||||
bool value = false;
|
||||
REQUIRE(Unserialize(context, &value));
|
||||
|
||||
Reference in New Issue
Block a user