|
|
|
|
@ -1044,15 +1044,15 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
|
|
|
|
|
// get_object_of_execution
|
|
|
|
|
{
|
|
|
|
|
{ String base = "var roman = kieliszek.";
|
|
|
|
|
String base = "var roman = kieliszek.";
|
|
|
|
|
String expected = "kieliszek.";
|
|
|
|
|
String got = get_object_of_execution(base);
|
|
|
|
|
if (got != expected) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", base, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String base = "r.";
|
|
|
|
|
String expected = "r.";
|
|
|
|
|
String got = get_object_of_execution(base);
|
|
|
|
|
@ -1060,8 +1060,8 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", base, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String base = "mortadela(";
|
|
|
|
|
String expected = "";
|
|
|
|
|
String got = get_object_of_execution(base);
|
|
|
|
|
@ -1069,8 +1069,8 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", base, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String base = "var node = $world/ukraine/lviv.";
|
|
|
|
|
String expected = "$world/ukraine/lviv.";
|
|
|
|
|
String got = get_object_of_execution(base);
|
|
|
|
|
@ -1078,10 +1078,10 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", base, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// get_starting_space
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// get_starting_space
|
|
|
|
|
{
|
|
|
|
|
String base = "\t\t\t var roman = kieliszek.";
|
|
|
|
|
String expected = "\t\t\t";
|
|
|
|
|
String got = get_starting_space(base);
|
|
|
|
|
@ -1089,9 +1089,10 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from get_object_of_execution. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", base, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
// Parse Arguments
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Parse Arguments
|
|
|
|
|
{
|
|
|
|
|
String line = "( )";
|
|
|
|
|
Vector<String> got_vector = parse_arguments(line);
|
|
|
|
|
String got = "";
|
|
|
|
|
@ -1103,8 +1104,8 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", line, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String line = "(a , b , c)";
|
|
|
|
|
Vector<String> got_vector = parse_arguments(line);
|
|
|
|
|
String got = "";
|
|
|
|
|
@ -1116,8 +1117,8 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", line, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String line = "(a , \"b,\" , c)";
|
|
|
|
|
Vector<String> got_vector = parse_arguments(line);
|
|
|
|
|
String got = "";
|
|
|
|
|
@ -1129,8 +1130,8 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", line, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
String line = "(a , \"(,),,,,\" , c)";
|
|
|
|
|
Vector<String> got_vector = parse_arguments(line);
|
|
|
|
|
String got = "";
|
|
|
|
|
@ -1142,9 +1143,9 @@ bool ProjectConverter3To4::test_conversion(RegExContainer ®_container) {
|
|
|
|
|
ERR_PRINT(vformat("Failed to get proper data from parse_arguments. \"%s\" should return \"%s\"(%d), got \"%s\"(%d), instead.", line, expected, expected.size(), got, got.size()));
|
|
|
|
|
}
|
|
|
|
|
valid = valid && (got == expected);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return valid;
|
|
|
|
|
return valid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Validate in all arrays if names don't do cyclic renames "Node" -> "Node2D" | "Node2D" -> "2DNode"
|
|
|
|
|
|