summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-23 00:42:29 +0100
committerGitHub <noreply@github.com>2021-03-23 00:42:29 +0100
commiteeba8d63f8ae051705fa1f999c1f75791bc34640 (patch)
treeaf05b650bea6fd4fe83f3ffdf7032871d2cf78cc /modules
parent7acd62886de45cbccac63648963c9b0b16b825ab (diff)
parent6b4ff3b44b45ea2a78aa44adc50046e0750a2ae3 (diff)
Merge pull request #44398 from RevoluPowered/unit-tests-for-export-templates
Add unit tests for export templates
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/tests/test_gdscript.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/gdscript/tests/test_gdscript.cpp b/modules/gdscript/tests/test_gdscript.cpp
index 898ac653f5..3cc0eee672 100644
--- a/modules/gdscript/tests/test_gdscript.cpp
+++ b/modules/gdscript/tests/test_gdscript.cpp
@@ -118,10 +118,10 @@ static void test_parser(const String &p_code, const String &p_script_path, const
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
}
}
-
+#ifdef TOOLS_ENABLED
GDScriptParser::TreePrinter printer;
-
printer.print_tree(parser);
+#endif
}
static void test_compiler(const String &p_code, const String &p_script_path, const Vector<String> &p_lines) {
@@ -175,8 +175,9 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
signature += func->get_argument_name(i);
}
print_line(signature + ")");
-
+#ifdef TOOLS_ENABLED
func->disassemble(p_lines);
+#endif
print_line("");
print_line("");
}