Added a new test class.

This commit is contained in:
Relintai 2023-01-25 01:25:49 +01:00
parent 4f6b4d46de
commit 889515be41
5 changed files with 39 additions and 1 deletions

2
SCsub
View File

@ -46,6 +46,8 @@ sources = [
"mlpp/uni_lin_reg/uni_lin_reg.cpp",
"mlpp/utilities/utilities.cpp",
"mlpp/wgan/wgan.cpp",
"test/mlpp_tests.cpp",
]

View File

@ -6,6 +6,9 @@ def configure(env):
def get_doc_classes():
return [
"MLPPTest",
]
def get_doc_path():

View File

@ -23,10 +23,11 @@ SOFTWARE.
#include "register_types.h"
#include "test/mlpp_tests.h"
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
//ClassDB::register_class<>();
ClassDB::register_class<MLPPTest>();
}
}

12
test/mlpp_tests.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "mlpp_tests.h"
MLPPTest::MLPPTest() {
}
MLPPTest::~MLPPTest() {
}
void MLPPTest::_bind_methods() {
//ClassDB::bind_method(D_METHOD(""), &MLPPTest::);
}

20
test/mlpp_tests.h Normal file
View File

@ -0,0 +1,20 @@
#ifndef MLPP_TEST_H
#define MLPP_TEST_H
// TODO port this class to use the test module once it's working
// Also don't forget to remove it's bindings
#include "core/object/reference.h"
class MLPPTest : public Reference {
GDCLASS(MLPPTest, Reference);
public:
MLPPTest();
~MLPPTest();
protected:
static void _bind_methods();
};
#endif