mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
Refactoring to use gd::String::FindAndReplace
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* GDevelop Core
|
||||
* Copyright 2008-2015 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"
|
||||
|
||||
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