[Scummvm-git-logs] scummvm master -> e89232a01a44595db93c80bbcf00ba7702c70c83
aquadran
noreply at scummvm.org
Tue Sep 16 13:50:52 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
e89232a01a WINTERMUTE: Update path utils tests
Commit: e89232a01a44595db93c80bbcf00ba7702c70c83
https://github.com/scummvm/scummvm/commit/e89232a01a44595db93c80bbcf00ba7702c70c83
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-09-16T15:50:47+02:00
Commit Message:
WINTERMUTE: Update path utils tests
Changed paths:
test/engines/wintermute/path_utils.h
diff --git a/test/engines/wintermute/path_utils.h b/test/engines/wintermute/path_utils.h
index 26f3404396c..b7aeea583b6 100644
--- a/test/engines/wintermute/path_utils.h
+++ b/test/engines/wintermute/path_utils.h
@@ -51,11 +51,11 @@ class PathUtilTestSuite : public CxxTest::TestSuite {
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getDirectoryName(windowsPath),
- Common::String("C:\\some\\")
+ Common::String("C:/some/")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getDirectoryName(windowsCapPath),
- Common::String("C:\\SOME\\")
+ Common::String("C:/SOME/")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getDirectoryName(emptyString),
@@ -67,7 +67,7 @@ class PathUtilTestSuite : public CxxTest::TestSuite {
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getDirectoryName(windowsDirPath),
- Common::String("C:\\some\\dir\\")
+ Common::String("C:/some/dir/")
);
}
@@ -113,11 +113,11 @@ class PathUtilTestSuite : public CxxTest::TestSuite {
void test_getextension() {
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(windowsPath),
- Common::String("ext")
+ Common::String(".ext")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(windowsCapPath),
- Common::String("EXT")
+ Common::String(".EXT")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(emptyString),
@@ -125,19 +125,19 @@ class PathUtilTestSuite : public CxxTest::TestSuite {
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(dualExtPath),
- Common::String("gz")
+ Common::String(".gz")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(manyExtPath),
- Common::String("zip")
+ Common::String(".zip")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(unixRelativePath),
- Common::String("ext")
+ Common::String(".ext")
);
TS_ASSERT_EQUALS(
Wintermute::PathUtil::getExtension(windowsRelativePath),
- Common::String("ext")
+ Common::String(".ext")
);
}
More information about the Scummvm-git-logs
mailing list