Files
GDevelop/Core/tests/InitialInstance.cpp
T
Florian Rival 741c457d7f Use double for instances position/angle/size instead of float and various other fields
Fix issues with precision of serialized JSON after the switch to RapidJSON

Don't show in changelog
2021-03-13 21:34:53 +00:00

30 lines
737 B
C++

/*
* GDevelop Core
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
/**
* @file Tests covering events of GDevelop Core.
*/
#include "catch.hpp"
#include <algorithm>
#include <initializer_list>
#include <map>
#include "GDCore/CommonTools.h"
#include "GDCore/Project/InitialInstance.h"
#include "GDCore/Tools/VersionWrapper.h"
TEST_CASE("InitialInstance", "[common][instances]") {
gd::InitialInstance instance;
SECTION("GetRawDoubleProperty") {
REQUIRE(instance.GetRawDoubleProperty("NotExistingProperty") == 0);
}
SECTION("GetRawStringProperty") {
REQUIRE(instance.GetRawStringProperty("NotExistingProperty") == "");
}
}