mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
@@ -59,7 +59,7 @@ TEST_F(CommandLineTests, cmdline_cmdline_for_sprite_details)
|
||||
std::string exampleFilePath = ExampleSpriteFilePath();
|
||||
const char* detailsCmd[3] = { "details", exampleFilePath.c_str() };
|
||||
|
||||
int32_t result = cmdline_for_sprite(detailsCmd, 2);
|
||||
int32_t result = CmdLineForSprite(detailsCmd, 2);
|
||||
// need to come up with some way to extract stdout/stderr stream if we want to
|
||||
// fully test this module
|
||||
ASSERT_EQ(result, 1);
|
||||
@@ -71,7 +71,7 @@ TEST_F(CommandLineTests, cmdline_cmdline_for_sprite_build)
|
||||
std::string outputfilePath = BuildOutputfilePath();
|
||||
const char* detailsCmd[3] = { "build", outputfilePath.c_str(), manifestFilePath.c_str() };
|
||||
|
||||
int32_t result = cmdline_for_sprite(detailsCmd, 3);
|
||||
int32_t result = CmdLineForSprite(detailsCmd, 3);
|
||||
ASSERT_EQ(result, 1);
|
||||
// compare the resulting output file and assert its identical to expected
|
||||
ASSERT_TRUE(CompareSpriteFiles(ExampleSpriteFilePath(), outputfilePath));
|
||||
@@ -83,14 +83,14 @@ TEST_F(CommandLineTests, cmdline_cmdline_for_sprite_failed_build)
|
||||
std::string manifestFilePath = ManifestFilePath();
|
||||
std::string outputfilePath = BuildOutputfilePath();
|
||||
const char* detailsCmd[3] = { "build", outputfilePath.c_str(), manifestFilePath.c_str() };
|
||||
int32_t result = cmdline_for_sprite(detailsCmd, 3);
|
||||
int32_t result = CmdLineForSprite(detailsCmd, 3);
|
||||
ASSERT_EQ(result, 1);
|
||||
ASSERT_TRUE(CompareSpriteFiles(ExampleSpriteFilePath(), outputfilePath));
|
||||
|
||||
// now use bad manifest and make sure output file is not edited
|
||||
std::string badManifestFilePath = BadManifestFilePath();
|
||||
detailsCmd[2] = badManifestFilePath.c_str();
|
||||
result = cmdline_for_sprite(detailsCmd, 3);
|
||||
result = CmdLineForSprite(detailsCmd, 3);
|
||||
// check the command failed
|
||||
ASSERT_EQ(result, -1);
|
||||
// validate the target file was unchanged
|
||||
|
||||
Reference in New Issue
Block a user