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

Even more extensive test

This commit is contained in:
Stefan de Bruijn
2021-06-07 08:51:13 +02:00
parent 4749847b4d
commit 70907d2d47

View File

@@ -225,26 +225,26 @@ namespace Configuration {
// ST_TIMED, "Timed" }, { ST_RMT, "RMT" }, { ST_I2S_STATIC, "I2S_static" }, { ST_I2S_STREAM, "I2S_stream" }, EnumItem()
Test(YamlTreeBuilder, Enum1) {
{
const char* config = "type: Timed\n";
const char* config = "aap: 1\ntype: Timed\nbanaan: 2\n";
TestBasicEnum test;
Helper::Parse(config, test);
Assert(test.value == int(ST_TIMED));
}
{
const char* config = "type: RMT\n";
const char* config = "aap: 1\ntype: RMT\nbanaan: 2\n";
TestBasicEnum test;
Helper::Parse(config, test);
Assert(test.value == int(ST_RMT));
}
{
const char* config = "type: I2S_static\n";
const char* config = "aap: 1\ntype: I2S_static\nbanaan: 2\n";
TestBasicEnum test;
Helper::Parse(config, test);
Assert(test.value == int(ST_I2S_STATIC));
}
{
const char* config = "type: I2S_stream\n";
const char* config = "aap: 1\ntype: I2S_stream\nbanaan: 2\n";
TestBasicEnum test;
Helper::Parse(config, test);
Assert(test.value == int(ST_I2S_STREAM));