mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
Add clang-format to format (C++) source files automatically (#491)
* 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
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
/*
|
||||
* GDevelop Core
|
||||
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
|
||||
* This project is released under the MIT License.
|
||||
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
|
||||
* reserved. This project is released under the MIT License.
|
||||
*/
|
||||
#include "catch.hpp"
|
||||
#include "GDCore/IDE/AbstractFileSystem.h"
|
||||
#include "catch.hpp"
|
||||
|
||||
TEST_CASE( "AbstractFileSystem", "[common]" ) {
|
||||
SECTION("Basics") {
|
||||
REQUIRE( gd::AbstractFileSystem::NormalizeSeparator(u8"C:\\Test\\Test2\\") == u8"C:/Test/Test2/" );
|
||||
REQUIRE( gd::AbstractFileSystem::NormalizeSeparator(u8"C:\\TestԘ\\Test2\\") == u8"C:/TestԘ/Test2/" );
|
||||
REQUIRE( gd::AbstractFileSystem::NormalizeSeparator(u8"/TestԘ/Test2") == u8"/TestԘ/Test2" );
|
||||
}
|
||||
TEST_CASE("AbstractFileSystem", "[common]") {
|
||||
SECTION("Basics") {
|
||||
REQUIRE(gd::AbstractFileSystem::NormalizeSeparator(u8"C:\\Test\\Test2\\") ==
|
||||
u8"C:/Test/Test2/");
|
||||
REQUIRE(gd::AbstractFileSystem::NormalizeSeparator(
|
||||
u8"C:\\TestԘ\\Test2\\") == u8"C:/TestԘ/Test2/");
|
||||
REQUIRE(gd::AbstractFileSystem::NormalizeSeparator(u8"/TestԘ/Test2") ==
|
||||
u8"/TestԘ/Test2");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user