Skip to content
Snippets Groups Projects

Changed test layout and refactorized some tests for OutputPort

Merged Kevin Scott requested to merge test-refactoring into develop
1 unresolved thread
Files
13
@@ -19,9 +19,9 @@ def create_operation(_type, dest_oper, index, **kwargs):
@@ -19,9 +19,9 @@ def create_operation(_type, dest_oper, index, **kwargs):
def operation_tree():
def operation_tree():
"""
"""
Return a addition operation connected with 2 constants.
Return a addition operation connected with 2 constants.
>---C---+
---C---+
---A
---A
>---C---+
---C---+
"""
"""
add_oper = Addition()
add_oper = Addition()
create_operation(Constant, add_oper, 0, value=2)
create_operation(Constant, add_oper, 0, value=2)
@@ -32,13 +32,13 @@ def operation_tree():
@@ -32,13 +32,13 @@ def operation_tree():
def large_operation_tree():
def large_operation_tree():
"""
"""
Return a constant operation connected with a large operation tree with 3 other constants and 3 additions.
Return a constant operation connected with a large operation tree with 3 other constants and 3 additions.
>---C---+
---C---+
---A---+
---A---+
>---C---+ |
---C---+ |
+---A
+---A
>---C---+ |
---C---+ |
---A---+
---A---+
>---C---+
---C---+
"""
"""
add_oper = Addition()
add_oper = Addition()
add_oper_2 = Addition()
add_oper_2 = Addition()
Loading