mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-03-12 22:38:51 +01:00
Added a new test class.
This commit is contained in:
parent
4f6b4d46de
commit
889515be41
2
SCsub
2
SCsub
@ -46,6 +46,8 @@ sources = [
|
|||||||
"mlpp/uni_lin_reg/uni_lin_reg.cpp",
|
"mlpp/uni_lin_reg/uni_lin_reg.cpp",
|
||||||
"mlpp/utilities/utilities.cpp",
|
"mlpp/utilities/utilities.cpp",
|
||||||
"mlpp/wgan/wgan.cpp",
|
"mlpp/wgan/wgan.cpp",
|
||||||
|
|
||||||
|
"test/mlpp_tests.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,6 +6,9 @@ def configure(env):
|
|||||||
|
|
||||||
def get_doc_classes():
|
def get_doc_classes():
|
||||||
return [
|
return [
|
||||||
|
|
||||||
|
|
||||||
|
"MLPPTest",
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_doc_path():
|
def get_doc_path():
|
||||||
|
@ -23,10 +23,11 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
|
#include "test/mlpp_tests.h"
|
||||||
|
|
||||||
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
||||||
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
|
||||||
//ClassDB::register_class<>();
|
ClassDB::register_class<MLPPTest>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
test/mlpp_tests.cpp
Normal file
12
test/mlpp_tests.cpp
Normal 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
20
test/mlpp_tests.h
Normal 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
|
Loading…
Reference in New Issue
Block a user