Skip to content
Snippets Groups Projects
Commit ba2e02d6 authored by Kevin's avatar Kevin
Browse files

added another simple test in system_test.py

parent e4949d28
Branches
Tags
2 merge requests!25Resolve "System tests iteration 1",!24Resolve "System tests iteration 1"
Pipeline #13337 failed
......@@ -100,3 +100,20 @@ def test_large_operation_tree():
output = simulate.run_for(len(random_inputs))
assert simulate.results[num_inputs]['out1'] > sum(random_inputs)
def test_looping_sfg():
"""A valid looping SFG.
+------<constmul2------+
| |
| |
in1>------add1>----constmul1>------+------out1>
"""
in1 = Input()
constmul1 = ConstantMultiplication(1)
constmul2 = ConstantMultiplication(1)
add1 = in1 + constmul2
constmul2.input(0).connect(constmul1)
out1 = Output(constmul1)
return SFG(inputs=[in1], outputs=[out1])
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment