feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GDSCRIPT_TEST_RUNNER_SUITE_H
|
||||
#define GDSCRIPT_TEST_RUNNER_SUITE_H
|
||||
#pragma once
|
||||
|
||||
#include "gdscript_test_runner.h"
|
||||
|
||||
|
|
@ -81,9 +80,8 @@ TEST_CASE("[Modules][GDScript] Validate built-in API") {
|
|||
|
||||
SUBCASE("[Modules][GDScript] Validate built-in methods") {
|
||||
for (const MethodInfo &mi : builtin_methods) {
|
||||
int i = 0;
|
||||
for (List<PropertyInfo>::ConstIterator itr = mi.arguments.begin(); itr != mi.arguments.end(); ++itr, ++i) {
|
||||
TEST_COND((itr->name.is_empty() || itr->name.begins_with("_unnamed_arg")),
|
||||
for (int64_t i = 0; i < mi.arguments.size(); ++i) {
|
||||
TEST_COND((mi.arguments[i].name.is_empty() || mi.arguments[i].name.begins_with("_unnamed_arg")),
|
||||
vformat("Unnamed argument in position %d of built-in method '%s'.", i, mi.name));
|
||||
}
|
||||
}
|
||||
|
|
@ -95,9 +93,8 @@ TEST_CASE("[Modules][GDScript] Validate built-in API") {
|
|||
|
||||
SUBCASE("[Modules][GDScript] Validate built-in annotations") {
|
||||
for (const MethodInfo &ai : builtin_annotations) {
|
||||
int i = 0;
|
||||
for (List<PropertyInfo>::ConstIterator itr = ai.arguments.begin(); itr != ai.arguments.end(); ++itr, ++i) {
|
||||
TEST_COND((itr->name.is_empty() || itr->name.begins_with("_unnamed_arg")),
|
||||
for (int64_t i = 0; i < ai.arguments.size(); ++i) {
|
||||
TEST_COND((ai.arguments[i].name.is_empty() || ai.arguments[i].name.begins_with("_unnamed_arg")),
|
||||
vformat("Unnamed argument in position %d of built-in annotation '%s'.", i, ai.name));
|
||||
}
|
||||
}
|
||||
|
|
@ -105,5 +102,3 @@ TEST_CASE("[Modules][GDScript] Validate built-in API") {
|
|||
}
|
||||
|
||||
} // namespace GDScriptTests
|
||||
|
||||
#endif // GDSCRIPT_TEST_RUNNER_SUITE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue