1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-31 10:01:48 +02:00

Made unit test for enums a bit bigger.

This commit is contained in:
Stefan de Bruijn
2021-06-07 08:50:18 +02:00
parent 11433470dd
commit 4749847b4d

View File

@@ -47,10 +47,16 @@ namespace Configuration {
class TestBasicEnum : public Configurable {
public:
int aap;
int value;
int banaan;
void validate() const {}
void handle(HandlerBase& handler) { handler.handle("type", value, stepTypes); }
void handle(HandlerBase& handler) {
handler.handle("aap", aap);
handler.handle("type", value, stepTypes);
handler.handle("banaan", banaan);
}
};
class TestHierarchical : public Configurable {