Refactoring to use gd::String::FindAndReplace

This commit is contained in:
Florian Rival
2015-08-24 19:24:38 +02:00
parent c369db20ba
commit b24e37ff01
15 changed files with 100 additions and 196 deletions
+15
View File
@@ -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" );
}
}