From 9641cdfeb9bcfd4d46efcdf76a212a4da437e437 Mon Sep 17 00:00:00 2001 From: ArrowsFlying Date: Thu, 17 Oct 2024 09:30:21 +0300 Subject: [PATCH] Rebranding tests folder --- tests/core/io/test_config_file.h | 10 ++--- tests/core/io/test_json.h | 4 +- tests/core/io/test_marshalls.h | 2 +- tests/core/math/test_quaternion.h | 2 +- tests/core/os/test_os.h | 4 +- tests/core/string/test_string.h | 30 +++++++------- tests/core/templates/test_list.h | 12 +++--- tests/core/test_time.h | 40 +++++++++---------- tests/display_server_mock.h | 2 +- tests/scene/test_sprite_frames.h | 2 +- tests/scene/test_text_edit.h | 2 +- .../rendering/test_shader_preprocessor.h | 2 +- tests/test_macros.h | 4 +- tests/test_main.cpp | 12 +++--- tests/test_validate_testing.h | 8 ++-- 15 files changed, 68 insertions(+), 68 deletions(-) diff --git a/tests/core/io/test_config_file.h b/tests/core/io/test_config_file.h index a669906bdbb4..fb43438d3d74 100644 --- a/tests/core/io/test_config_file.h +++ b/tests/core/io/test_config_file.h @@ -47,7 +47,7 @@ TEST_CASE("[ConfigFile] Parsing well-formatted files") { name = "Unnamed Player" tagline="Waiting for -Godot" +Blazium" color =Color( 0, 0.5,1, 1) ; Inline comment position= Vector2( @@ -68,7 +68,7 @@ antiAliasing = false String(config_file.get_value("player", "name")) == "Unnamed Player", "Reading `player/name` should return the expected value."); CHECK_MESSAGE( - String(config_file.get_value("player", "tagline")) == "Waiting\nfor\nGodot", + String(config_file.get_value("player", "tagline")) == "Waiting\nfor\nBlazium", "Reading `player/tagline` should return the expected value."); CHECK_MESSAGE( Color(config_file.get_value("player", "color")).is_equal_approx(Color(0, 0.5, 1)), @@ -96,7 +96,7 @@ TEST_CASE("[ConfigFile] Parsing malformatted file") { [player] name = "Unnamed Player"" ; Extraneous closing quote. -tagline = "Waiting\nfor\nGodot" +tagline = "Waiting\nfor\nBlazium" color = Color(0, 0.5, 1) ; Missing 4th parameter. position = Vector2( @@ -118,7 +118,7 @@ antialiasing = false ; Duplicate key. TEST_CASE("[ConfigFile] Saving file") { ConfigFile config_file; config_file.set_value("player", "name", "Unnamed Player"); - config_file.set_value("player", "tagline", "Waiting\nfor\nGodot"); + config_file.set_value("player", "tagline", "Waiting\nfor\nBlazium"); config_file.set_value("player", "color", Color(0, 0.5, 1)); config_file.set_value("player", "position", Vector2(3, 4)); config_file.set_value("graphics", "antialiasing", true); @@ -140,7 +140,7 @@ TEST_CASE("[ConfigFile] Saving file") { name="Unnamed Player" tagline="Waiting for -Godot" +Blazium" color=Color(0, 0.5, 1, 1) position=Vector2(3, 4) diff --git a/tests/core/io/test_json.h b/tests/core/io/test_json.h index bf2ed4274079..b97b02dd6b89 100644 --- a/tests/core/io/test_json.h +++ b/tests/core/io/test_json.h @@ -127,11 +127,11 @@ TEST_CASE("[JSON] Parsing arrays") { TEST_CASE("[JSON] Parsing objects (dictionaries)") { JSON json; - json.parse(R"({"name": "Godot Engine", "is_free": true, "bugs": null, "apples": {"red": 500, "green": 0, "blue": -20}, "empty_object": {}})"); + json.parse(R"({"name": "Blazium Engine", "is_free": true, "bugs": null, "apples": {"red": 500, "green": 0, "blue": -20}, "empty_object": {}})"); const Dictionary dictionary = json.get_data(); CHECK_MESSAGE( - dictionary["name"] == "Godot Engine", + dictionary["name"] == "Blazium Engine", "The parsed JSON should contain the expected values."); CHECK_MESSAGE( dictionary["is_free"], diff --git a/tests/core/io/test_marshalls.h b/tests/core/io/test_marshalls.h index de8d6e14067f..a9c469fd22cc 100644 --- a/tests/core/io/test_marshalls.h +++ b/tests/core/io/test_marshalls.h @@ -141,7 +141,7 @@ TEST_CASE("[Marshalls] Floating point double precision decoding") { } TEST_CASE("[Marshalls] C string encoding") { - char cstring[] = "Godot"; // 5 characters + char cstring[] = "Blazium"; // 5 characters uint8_t data[6]; int actual_size = encode_cstring(cstring, data); diff --git a/tests/core/math/test_quaternion.h b/tests/core/math/test_quaternion.h index 40db43b88b40..221098048b6f 100644 --- a/tests/core/math/test_quaternion.h +++ b/tests/core/math/test_quaternion.h @@ -292,7 +292,7 @@ TEST_CASE("[Quaternion] Product") { // Test ZYX dynamic-axes since test data is available online. // Rotate first about X axis, then new Y axis, then new Z axis. - // (Godot uses YXZ Yaw-Pitch-Roll order). + // (Blazium uses YXZ Yaw-Pitch-Roll order). Quaternion q_yp = q_y * q_p; CHECK(q_yp[0] == doctest::Approx(0.239118)); CHECK(q_yp[1] == doctest::Approx(0.369644)); diff --git a/tests/core/os/test_os.h b/tests/core/os/test_os.h index 1e2f5e222b4e..5f35d641c890 100644 --- a/tests/core/os/test_os.h +++ b/tests/core/os/test_os.h @@ -182,7 +182,7 @@ TEST_CASE("[OS] Execute") { const Error err = OS::get_singleton()->execute("cmd", arguments, nullptr, &exit_code); CHECK_MESSAGE( err == OK, - "(Running the command `cmd /C \"dir > NUL\"` returns the expected Godot error code (OK)."); + "(Running the command `cmd /C \"dir > NUL\"` returns the expected Blazium error code (OK)."); CHECK_MESSAGE( exit_code == 0, "Running the command `cmd /C \"dir > NUL\"` returns a zero (successful) exit code."); @@ -194,7 +194,7 @@ TEST_CASE("[OS] Execute") { const Error err = OS::get_singleton()->execute("sh", arguments, nullptr, &exit_code); CHECK_MESSAGE( err == OK, - "(Running the command `sh -c \"ls > /dev/null\"` returns the expected Godot error code (OK)."); + "(Running the command `sh -c \"ls > /dev/null\"` returns the expected Blazium error code (OK)."); CHECK_MESSAGE( exit_code == 0, "Running the command `sh -c \"ls > /dev/null\"` returns a zero (successful) exit code."); diff --git a/tests/core/string/test_string.h b/tests/core/string/test_string.h index 393ae16d0a8f..7e7f9b4556ec 100644 --- a/tests/core/string/test_string.h +++ b/tests/core/string/test_string.h @@ -285,9 +285,9 @@ TEST_CASE("[String] Testing for empty string") { } TEST_CASE("[String] Contains") { - String s = "C:\\Godot\\project\\string_test.tscn"; + String s = "C:\\Blazium\\project\\string_test.tscn"; CHECK(s.contains(":\\")); - CHECK(s.contains("Godot")); + CHECK(s.contains("Blazium")); CHECK(s.contains(String("project\\string_test"))); CHECK(s.contains(String("\\string_test.tscn"))); @@ -298,9 +298,9 @@ TEST_CASE("[String] Contains") { } TEST_CASE("[String] Contains case insensitive") { - String s = "C:\\Godot\\project\\string_test.tscn"; - CHECK(s.containsn("Godot")); - CHECK(s.containsn("godot")); + String s = "C:\\Blazium\\project\\string_test.tscn"; + CHECK(s.containsn("Blazium")); + CHECK(s.containsn("Blazium")); CHECK(s.containsn(String("Project\\string_test"))); CHECK(s.containsn(String("\\string_Test.tscn"))); @@ -1409,7 +1409,7 @@ TEST_CASE("[String] Checking string is empty when it should be") { if (!success) { state = false; } - String b = "Godot"; + String b = "Blazium"; success = b[b.size()] == 0; if (!success) { state = false; @@ -1420,7 +1420,7 @@ TEST_CASE("[String] Checking string is empty when it should be") { state = false; } - const String d = "Godot"; + const String d = "Blazium"; success = d[d.size()] == 0; if (!success) { state = false; @@ -1546,7 +1546,7 @@ TEST_CASE("[String] Count and countn functionality") { s = "TestTestTest"; MULTICHECK_STRING_EQ(s, count, "TestTest", 1); - s = "TestGodotTestGodotTestGodot"; + s = "TestBlaziumTestBlaziumTestBlazium"; MULTICHECK_STRING_EQ(s, count, "Test", 3); s = "TestTestTestTest"; @@ -1615,12 +1615,12 @@ TEST_CASE("[String] dedent") { } TEST_CASE("[String] Path functions") { - static const char *path[8] = { "C:\\Godot\\project\\test.tscn", "/Godot/project/test.xscn", "../Godot/project/test.scn", "Godot\\test.doc", "C:\\test.", "res://test", "user://test", "/.test" }; - static const char *base_dir[8] = { "C:\\Godot\\project", "/Godot/project", "../Godot/project", "Godot", "C:\\", "res://", "user://", "/" }; - static const char *base_name[8] = { "C:\\Godot\\project\\test", "/Godot/project/test", "../Godot/project/test", "Godot\\test", "C:\\test", "res://test", "user://test", "/" }; + static const char *path[8] = { "C:\\Blazium\\project\\test.tscn", "/Blazium/project/test.xscn", "../Blazium/project/test.scn", "Blazium\\test.doc", "C:\\test.", "res://test", "user://test", "/.test" }; + static const char *base_dir[8] = { "C:\\Blazium\\project", "/Blazium/project", "../Blazium/project", "Blazium", "C:\\", "res://", "user://", "/" }; + static const char *base_name[8] = { "C:\\Blazium\\project\\test", "/Blazium/project/test", "../Blazium/project/test", "Blazium\\test", "C:\\test", "res://test", "user://test", "/" }; static const char *ext[8] = { "tscn", "xscn", "scn", "doc", "", "", "", "test" }; static const char *file[8] = { "test.tscn", "test.xscn", "test.scn", "test.doc", "test.", "test", "test", ".test" }; - static const char *simplified[8] = { "C:/Godot/project/test.tscn", "/Godot/project/test.xscn", "Godot/project/test.scn", "Godot/test.doc", "C:/test.", "res://test", "user://test", "/.test" }; + static const char *simplified[8] = { "C:/Blazium/project/test.tscn", "/Blazium/project/test.xscn", "Blazium/project/test.scn", "Blazium/test.doc", "C:/test.", "res://test", "user://test", "/.test" }; static const bool abs[8] = { true, true, false, false, true, true, true, true }; for (int i = 0; i < 8; i++) { @@ -1653,8 +1653,8 @@ TEST_CASE("[String] hash") { } TEST_CASE("[String] uri_encode/unescape") { - String s = "Godot Engine:'docs'"; - String t = "Godot%20Engine%3A%27docs%27"; + String s = "Blazium Engine:'docs'"; + String t = "Blazium%20Engine%3A%27docs%27"; String x1 = "T%C4%93%C5%A1t"; static const uint8_t u8str[] = { 0x54, 0xC4, 0x93, 0xC5, 0xA1, 0x74, 0x00 }; @@ -1781,7 +1781,7 @@ TEST_CASE("[String] Reverse") { } TEST_CASE("[String] SHA1/SHA256/MD5") { - String s = "Godot"; + String s = "Blazium"; String sha1 = "a1e91f39b9fce6a9998b14bdbe2aa2b39dc2d201"; static uint8_t sha1_buf[20] = { 0xA1, 0xE9, 0x1F, 0x39, 0xB9, 0xFC, 0xE6, 0xA9, 0x99, 0x8B, 0x14, 0xBD, 0xBE, 0x2A, 0xA2, 0xB3, diff --git a/tests/core/templates/test_list.h b/tests/core/templates/test_list.h index 6d95cca15077..a4ba469527e4 100644 --- a/tests/core/templates/test_list.h +++ b/tests/core/templates/test_list.h @@ -441,15 +441,15 @@ TEST_CASE("[List] Swap middle (values check)") { List::Element *n_str1 = list.push_back("Still"); List::Element *n_str2 = list.push_back("waiting"); List::Element *n_str3 = list.push_back("for"); - List::Element *n_str4 = list.push_back("Godot."); + List::Element *n_str4 = list.push_back("Blazium."); CHECK(n_str1->get() == "Still"); - CHECK(n_str4->get() == "Godot."); + CHECK(n_str4->get() == "Blazium."); CHECK(list.front()->get() == "Still"); CHECK(list.front()->next()->get() == "waiting"); CHECK(list.back()->prev()->get() == "for"); - CHECK(list.back()->get() == "Godot."); + CHECK(list.back()->get() == "Blazium."); list.swap(n_str2, n_str3); @@ -459,18 +459,18 @@ TEST_CASE("[List] Swap middle (values check)") { TEST_CASE("[List] Swap front and back (values check)") { List list; - Variant str = "Godot"; + Variant str = "Blazium"; List::Element *n_str = list.push_back(str); Variant color = Color(0, 0, 1); List::Element *n_color = list.push_back(color); - CHECK(list.front()->get() == "Godot"); + CHECK(list.front()->get() == "Blazium"); CHECK(list.back()->get() == Color(0, 0, 1)); list.swap(n_str, n_color); CHECK(list.front()->get() == Color(0, 0, 1)); - CHECK(list.back()->get() == "Godot"); + CHECK(list.back()->get() == "Blazium"); } TEST_CASE("[List] Swap adjacent back and front (reverse order of elements)") { diff --git a/tests/core/test_time.h b/tests/core/test_time.h index 6e313243597f..d17a93ef7d2c 100644 --- a/tests/core/test_time.h +++ b/tests/core/test_time.h @@ -58,10 +58,10 @@ TEST_CASE("[Time] Unix time conversion to/from datetime string") { CHECK_MESSAGE(time->get_unix_time_from_datetime_string("1234-05-06 07:08:09") == -23215049511, "Time get_unix_time_from_datetime_string: The timestamp for an arbitrary datetime with space is as expected."); CHECK_MESSAGE(time->get_unix_time_from_datetime_string("1234-05-06") == -23215075200, "Time get_unix_time_from_datetime_string: The timestamp for an arbitrary date without time is as expected."); CHECK_MESSAGE(time->get_unix_time_from_datetime_string("07:08:09") == 25689, "Time get_unix_time_from_datetime_string: The timestamp for an arbitrary time without date is as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09T22:10:30") == 1391983830, "Time get_unix_time_from_datetime_string: The timestamp for GODOT IS OPEN SOURCE is as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09 22:10:30") == 1391983830, "Time get_unix_time_from_datetime_string: The timestamp for GODOT IS OPEN SOURCE with space is as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09") == 1391904000, "Time get_unix_time_from_datetime_string: The date for GODOT IS OPEN SOURCE without time is as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_string("22:10:30") == 79830, "Time get_unix_time_from_datetime_string: The time for GODOT IS OPEN SOURCE without date is as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09T22:10:30") == 1391983830, "Time get_unix_time_from_datetime_string: The timestamp for BLAZIUM IS OPEN SOURCE is as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09 22:10:30") == 1391983830, "Time get_unix_time_from_datetime_string: The timestamp for BLAZIUM IS OPEN SOURCE with space is as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_string("2014-02-09") == 1391904000, "Time get_unix_time_from_datetime_string: The date for BLAZIUM IS OPEN SOURCE without time is as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_string("22:10:30") == 79830, "Time get_unix_time_from_datetime_string: The time for BLAZIUM IS OPEN SOURCE without date is as expected."); CHECK_MESSAGE(time->get_unix_time_from_datetime_string("-1000000000-01-01T00:00:00") == -31557014167219200, "Time get_unix_time_from_datetime_string: In the year negative a billion, Japan might not have been here."); CHECK_MESSAGE(time->get_unix_time_from_datetime_string("1000000-01-01T00:00:00") == 31494784780800, "Time get_unix_time_from_datetime_string: The timestamp for the year a million is as expected."); @@ -74,10 +74,10 @@ TEST_CASE("[Time] Unix time conversion to/from datetime string") { CHECK_MESSAGE(time->get_datetime_string_from_unix_time(-23215049511, true) == "1234-05-06 07:08:09", "Time get_datetime_string_from_unix_time: The timestamp for an arbitrary datetime with space is as expected."); CHECK_MESSAGE(time->get_date_string_from_unix_time(-23215075200) == "1234-05-06", "Time get_date_string_from_unix_time: The timestamp for an arbitrary date without time is as expected."); CHECK_MESSAGE(time->get_time_string_from_unix_time(25689) == "07:08:09", "Time get_time_string_from_unix_time: The timestamp for an arbitrary time without date is as expected."); - CHECK_MESSAGE(time->get_datetime_string_from_unix_time(1391983830) == "2014-02-09T22:10:30", "Time get_datetime_string_from_unix_time: The timestamp for GODOT IS OPEN SOURCE is as expected."); - CHECK_MESSAGE(time->get_datetime_string_from_unix_time(1391983830, true) == "2014-02-09 22:10:30", "Time get_datetime_string_from_unix_time: The timestamp for GODOT IS OPEN SOURCE with space is as expected."); - CHECK_MESSAGE(time->get_date_string_from_unix_time(1391904000) == "2014-02-09", "Time get_date_string_from_unix_time: The date for GODOT IS OPEN SOURCE without time is as expected."); - CHECK_MESSAGE(time->get_time_string_from_unix_time(79830) == "22:10:30", "Time get_time_string_from_unix_time: The time for GODOT IS OPEN SOURCE without date is as expected."); + CHECK_MESSAGE(time->get_datetime_string_from_unix_time(1391983830) == "2014-02-09T22:10:30", "Time get_datetime_string_from_unix_time: The timestamp for BLAZIUM IS OPEN SOURCE is as expected."); + CHECK_MESSAGE(time->get_datetime_string_from_unix_time(1391983830, true) == "2014-02-09 22:10:30", "Time get_datetime_string_from_unix_time: The timestamp for BLAZIUM IS OPEN SOURCE with space is as expected."); + CHECK_MESSAGE(time->get_date_string_from_unix_time(1391904000) == "2014-02-09", "Time get_date_string_from_unix_time: The date for BLAZIUM IS OPEN SOURCE without time is as expected."); + CHECK_MESSAGE(time->get_time_string_from_unix_time(79830) == "22:10:30", "Time get_time_string_from_unix_time: The time for BLAZIUM IS OPEN SOURCE without date is as expected."); CHECK_MESSAGE(time->get_datetime_string_from_unix_time(31494784780800) == "1000000-01-01T00:00:00", "Time get_datetime_string_from_unix_time: The timestamp for the year a million is as expected."); CHECK_MESSAGE(time->get_offset_string_from_offset_minutes(0) == "+00:00", "Time get_offset_string_from_offset_minutes: The offset string is as expected."); CHECK_MESSAGE(time->get_offset_string_from_offset_minutes(-600) == "-10:00", "Time get_offset_string_from_offset_minutes: The offset string is as expected."); @@ -107,22 +107,22 @@ TEST_CASE("[Time] Datetime dictionary conversion methods") { time_only[MINUTE_KEY] = 10; time_only[SECOND_KEY] = 30; - CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(datetime) == 1391983830, "Time get_unix_time_from_datetime_dict: The datetime dictionary for GODOT IS OPEN SOURCE is converted to a timestamp as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(date_only) == 1391904000, "Time get_unix_time_from_datetime_dict: The date dictionary for GODOT IS OPEN SOURCE is converted to a timestamp as expected."); - CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(time_only) == 79830, "Time get_unix_time_from_datetime_dict: The time dictionary for GODOT IS OPEN SOURCE is converted to a timestamp as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(datetime) == 1391983830, "Time get_unix_time_from_datetime_dict: The datetime dictionary for BLAZIUM IS OPEN SOURCE is converted to a timestamp as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(date_only) == 1391904000, "Time get_unix_time_from_datetime_dict: The date dictionary for BLAZIUM IS OPEN SOURCE is converted to a timestamp as expected."); + CHECK_MESSAGE(time->get_unix_time_from_datetime_dict(time_only) == 79830, "Time get_unix_time_from_datetime_dict: The time dictionary for BLAZIUM IS OPEN SOURCE is converted to a timestamp as expected."); - CHECK_MESSAGE(time->get_datetime_dict_from_unix_time(1391983830).hash() == datetime.hash(), "Time get_datetime_dict_from_unix_time: The datetime timestamp for GODOT IS OPEN SOURCE is converted to a dictionary as expected."); - CHECK_MESSAGE(time->get_date_dict_from_unix_time(1391904000).hash() == date_only.hash(), "Time get_date_dict_from_unix_time: The date timestamp for GODOT IS OPEN SOURCE is converted to a dictionary as expected."); - CHECK_MESSAGE(time->get_time_dict_from_unix_time(79830).hash() == time_only.hash(), "Time get_time_dict_from_unix_time: The time timestamp for GODOT IS OPEN SOURCE is converted to a dictionary as expected."); + CHECK_MESSAGE(time->get_datetime_dict_from_unix_time(1391983830).hash() == datetime.hash(), "Time get_datetime_dict_from_unix_time: The datetime timestamp for BLAZIUM IS OPEN SOURCE is converted to a dictionary as expected."); + CHECK_MESSAGE(time->get_date_dict_from_unix_time(1391904000).hash() == date_only.hash(), "Time get_date_dict_from_unix_time: The date timestamp for BLAZIUM IS OPEN SOURCE is converted to a dictionary as expected."); + CHECK_MESSAGE(time->get_time_dict_from_unix_time(79830).hash() == time_only.hash(), "Time get_time_dict_from_unix_time: The time timestamp for BLAZIUM IS OPEN SOURCE is converted to a dictionary as expected."); CHECK_MESSAGE((Weekday)(int)time->get_datetime_dict_from_unix_time(0)[WEEKDAY_KEY] == Weekday::WEEKDAY_THURSDAY, "Time get_datetime_dict_from_unix_time: The weekday for the Unix epoch is a Thursday as expected."); - CHECK_MESSAGE((Weekday)(int)time->get_datetime_dict_from_unix_time(1391983830)[WEEKDAY_KEY] == Weekday::WEEKDAY_SUNDAY, "Time get_datetime_dict_from_unix_time: The weekday for GODOT IS OPEN SOURCE is a Sunday as expected."); + CHECK_MESSAGE((Weekday)(int)time->get_datetime_dict_from_unix_time(1391983830)[WEEKDAY_KEY] == Weekday::WEEKDAY_SUNDAY, "Time get_datetime_dict_from_unix_time: The weekday for BLAZIUM IS OPEN SOURCE is a Sunday as expected."); - CHECK_MESSAGE(time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30").hash() == datetime.hash(), "Time get_datetime_dict_from_string: The dictionary from string for GODOT IS OPEN SOURCE works as expected."); - CHECK_MESSAGE(!time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30", false).has(WEEKDAY_KEY), "Time get_datetime_dict_from_string: The dictionary from string for GODOT IS OPEN SOURCE without weekday doesn't contain the weekday key as expected."); - CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(datetime) == "2014-02-09T22:10:30", "Time get_datetime_string_from_dict: The string from dictionary for GODOT IS OPEN SOURCE works as expected."); - CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30")) == "2014-02-09T22:10:30", "Time get_datetime_string_from_dict: The round-trip string to dict to string GODOT IS OPEN SOURCE works as expected."); - CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(time->get_datetime_dict_from_datetime_string("2014-02-09 22:10:30"), true) == "2014-02-09 22:10:30", "Time get_datetime_string_from_dict: The round-trip string to dict to string GODOT IS OPEN SOURCE with spaces works as expected."); + CHECK_MESSAGE(time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30").hash() == datetime.hash(), "Time get_datetime_dict_from_string: The dictionary from string for BLAZIUM IS OPEN SOURCE works as expected."); + CHECK_MESSAGE(!time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30", false).has(WEEKDAY_KEY), "Time get_datetime_dict_from_string: The dictionary from string for BLAZIUM IS OPEN SOURCE without weekday doesn't contain the weekday key as expected."); + CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(datetime) == "2014-02-09T22:10:30", "Time get_datetime_string_from_dict: The string from dictionary for BLAZIUM IS OPEN SOURCE works as expected."); + CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(time->get_datetime_dict_from_datetime_string("2014-02-09T22:10:30")) == "2014-02-09T22:10:30", "Time get_datetime_string_from_dict: The round-trip string to dict to string BLAZIUM IS OPEN SOURCE works as expected."); + CHECK_MESSAGE(time->get_datetime_string_from_datetime_dict(time->get_datetime_dict_from_datetime_string("2014-02-09 22:10:30"), true) == "2014-02-09 22:10:30", "Time get_datetime_string_from_dict: The round-trip string to dict to string BLAZIUM IS OPEN SOURCE with spaces works as expected."); } TEST_CASE("[Time] System time methods") { diff --git a/tests/display_server_mock.h b/tests/display_server_mock.h index b44ff06b3546..12b596e78fd3 100644 --- a/tests/display_server_mock.h +++ b/tests/display_server_mock.h @@ -101,7 +101,7 @@ class DisplayServerMock : public DisplayServerHeadless { String get_name() const override { return "mock"; } // You can simulate DisplayServer-events by calling this function. - // The events will be deliverd to Godot's Input-system. + // The events will be deliverd to Blazium's Input-system. // Mouse-events (Button & Motion) will additionally update the DisplayServer's mouse position. // For Mouse motion events, the `relative`-property is set based on the distance to the previous mouse position. void simulate_event(Ref p_event) { diff --git a/tests/scene/test_sprite_frames.h b/tests/scene/test_sprite_frames.h index 55854b90e474..2e4e36d6c6a0 100644 --- a/tests/scene/test_sprite_frames.h +++ b/tests/scene/test_sprite_frames.h @@ -36,7 +36,7 @@ #include "tests/test_macros.h" namespace TestSpriteFrames { -const String test_animation_name = "GodotTest"; +const String test_animation_name = "BlaziumTest"; TEST_CASE("[SpriteFrames] Constructor methods") { const SpriteFrames frames; diff --git a/tests/scene/test_text_edit.h b/tests/scene/test_text_edit.h index b2d9f5100e81..fbda58580149 100644 --- a/tests/scene/test_text_edit.h +++ b/tests/scene/test_text_edit.h @@ -6286,7 +6286,7 @@ TEST_CASE("[SceneTree][TextEdit] versioning") { CHECK(text_edit->get_saved_version() == 0); SUBCASE("[TextEdit] versioning selection") { - text_edit->set_text("Godot Engine\nWaiting for Godot\nTest Text for multi carat\nLine 4 Text"); + text_edit->set_text("Blazium Engine\nWaiting for Blazium\nTest Text for multi carat\nLine 4 Text"); text_edit->set_multiple_carets_enabled(true); text_edit->remove_secondary_carets(); diff --git a/tests/servers/rendering/test_shader_preprocessor.h b/tests/servers/rendering/test_shader_preprocessor.h index e12da8a2dbaf..8de9c4e0de21 100644 --- a/tests/servers/rendering/test_shader_preprocessor.h +++ b/tests/servers/rendering/test_shader_preprocessor.h @@ -229,7 +229,7 @@ TEST_CASE("[ShaderPreprocessor] Concatenation") { TEST_CASE("[ShaderPreprocessor] Nested concatenation") { // Concatenation ## should not expand adjacent tokens if they are macros, - // but this is currently not implemented in Godot's shader preprocessor. + // but this is currently not implemented in Blazium's shader preprocessor. // To force expanding, an extra macro should be required (B in this case). String code( diff --git a/tests/test_macros.h b/tests/test_macros.h index 10f4c59a9085..b9fe2062d439 100644 --- a/tests/test_macros.h +++ b/tests/test_macros.h @@ -48,7 +48,7 @@ // The test case is marked as failed, but does not fail the entire test run. #define TEST_CASE_MAY_FAIL(name) TEST_CASE(name *doctest::may_fail()) -// Provide aliases to conform with Godot naming conventions (see error macros). +// Provide aliases to conform with Blazium naming conventions (see error macros). #define TEST_COND(cond, ...) DOCTEST_CHECK_FALSE_MESSAGE(cond, __VA_ARGS__) #define TEST_FAIL(cond, ...) DOCTEST_FAIL(cond, __VA_ARGS__) #define TEST_FAIL_COND(cond, ...) DOCTEST_REQUIRE_FALSE_MESSAGE(cond, __VA_ARGS__) @@ -123,7 +123,7 @@ DOCTEST_STRINGIFY_VARIANT(PackedVector4Array); // Register test commands to be launched from the command-line. // For instance: REGISTER_TEST_COMMAND("gdscript-parser" &test_parser_func). -// Example usage: `godot --test gdscript-parser`. +// Example usage: `blazium --test gdscript-parser`. typedef void (*TestFunc)(); extern HashMap *test_commands; diff --git a/tests/test_main.cpp b/tests/test_main.cpp index edadc52a1639..5f26a0412654 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -173,7 +173,7 @@ int test_main(int argc, char *argv[]) { bool run_tests = true; - // Convert arguments to Godot's command-line. + // Convert arguments to Blazium's command-line. List args; for (int i = 0; i < argc; i++) { @@ -212,10 +212,10 @@ int test_main(int argc, char *argv[]) { } if (test_args.size() > 0) { - // Convert Godot command line arguments back to standard arguments. + // Convert Blazium command line arguments back to standard arguments. char **doctest_args = new char *[test_args.size()]; for (uint32_t x = 0; x < test_args.size(); x++) { - // Operation to convert Godot string to non wchar string. + // Operation to convert Blazium string to non wchar string. CharString cs = test_args[x].utf8(); const char *str = cs.get_data(); // Allocate the string copy. @@ -237,8 +237,8 @@ int test_main(int argc, char *argv[]) { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -struct GodotTestCaseListener : public doctest::IReporter { - GodotTestCaseListener(const doctest::ContextOptions &p_in) {} +struct BlaziumTestCaseListener : public doctest::IReporter { + BlaziumTestCaseListener(const doctest::ContextOptions &p_in) {} SignalWatcher *signal_watcher = nullptr; @@ -446,4 +446,4 @@ struct GodotTestCaseListener : public doctest::IReporter { } }; -REGISTER_LISTENER("GodotTestCaseListener", 1, GodotTestCaseListener); +REGISTER_LISTENER("BlaziumTestCaseListener", 1, BlaziumTestCaseListener); diff --git a/tests/test_validate_testing.h b/tests/test_validate_testing.h index f2e3bf3bb451..f36c9b55c74b 100644 --- a/tests/test_validate_testing.h +++ b/tests/test_validate_testing.h @@ -48,10 +48,10 @@ TEST_SUITE("Validate tests") { CHECK_MESSAGE(true, "Pending test is run with `--no-skip`"); } } - TEST_CASE("Muting Godot error messages") { + TEST_CASE("Muting Blazium error messages") { ERR_PRINT_OFF; CHECK_MESSAGE(!CoreGlobals::print_error_enabled, "Error printing should be disabled."); - ERR_PRINT("Still waiting for Godot!"); // This should never get printed! + ERR_PRINT("Still waiting for Blazium!"); // This should never get printed! ERR_PRINT_ON; CHECK_MESSAGE(CoreGlobals::print_error_enabled, "Error printing should be re-enabled."); } @@ -59,7 +59,7 @@ TEST_SUITE("Validate tests") { Variant var; INFO(var); - String string("Godot is finally here!"); + String string("Blazium is finally here!"); INFO(string); Vector2 vec2(0.5, 1.0); @@ -197,7 +197,7 @@ TEST_SUITE("Validate tests") { REQUIRE_FALSE(ed.has_error); ERR_PRINT_OFF; - ERR_PRINT("Still waiting for Godot!"); + ERR_PRINT("Still waiting for Blazium!"); ERR_PRINT_ON; REQUIRE(ed.has_error);