Commit f1dd655a authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Add some tests for the new empty bracket behaviour.

parent a149913a
......@@ -3,6 +3,9 @@ trigger {
{ "immediate" }
}
#empty trigger
trigger{}
blocks (100.0, 0.0) {
{ "test_input_bool", "input_bool" }
{ "test_input_uint32", "input_uint32" }
......@@ -13,10 +16,16 @@ blocks (100.0, 0.0) {
{ "test_output_float", "output_float" }
}
#empty blocks
blocks(100.0, 0.0){}
alias {
{ "input_bool", "input_bool", "value" }
}
#empty alias
alias{}
links {
{ $<input_bool>, "output_bool", "value", true }
{ "input_uint32", "value", "output_uint32", "value", true }
......@@ -36,3 +45,6 @@ params {
{ "input_uint32", "value", 4, (int) { 0, 1, (int)0xdeadbeef, 123456789 } }
{ "output_uint32", "value", 4, (int) { 0, 1, (int)0xdeadbeef, 123456789 } }
}
#empty params
params{}
......@@ -22,5 +22,5 @@ links {
{ "in", "value", "n0", "input", true }
}
#empty links
links{}
......@@ -20,6 +20,29 @@ blocks (100.0, 0.0) {
}
}
{ "gain", "gain_only_input" }
module ("only_input") {
{
{ "in", "gain_only_input", "in" }
}
{}
}
{ "value_float", "value_only_output" }
module ("only_output") {
{}
{
{ "out", "value_only_output", "value" }
}
}
module ("empty") {
{}
{}
}
{ "test_module_gg.ctrl", "gg1" }
{ "test_module_gg.ctrl", "gg2" }
......@@ -44,6 +67,8 @@ links {
{ "gg1", "out", "out_gg1", "value", true }
{ "gg2", "out", "out_gg2", "value", true }
{ "ggn", "out", "out_ggn", "value", true }
{ "ggn", "out", "only_input", "in", true }
}
params {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment