mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
30 lines
735 B
C++
30 lines
735 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("GetRawFloatProperty") {
|
|
REQUIRE(instance.GetRawFloatProperty("NotExistingProperty") == 0);
|
|
}
|
|
|
|
SECTION("GetRawStringProperty") {
|
|
REQUIRE(instance.GetRawStringProperty("NotExistingProperty") == "");
|
|
}
|
|
}
|