Skip to content

Commit 1cc84a7

Browse files
committed
Add extra test case for wrong number of inputs
1 parent 8bc9487 commit 1cc84a7

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

control/tests/bdalg_test.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,55 @@ def test_split_tf(self, tf_array, tf):
815815
],
816816
ValueError,
817817
),
818+
(
819+
[
820+
[
821+
ctrl.TransferFunction(
822+
[
823+
[[2], [1]],
824+
[[1], [3]],
825+
],
826+
[
827+
[[1, 0], [1, 0]],
828+
[[1, 0], [1, 0]],
829+
],
830+
),
831+
ctrl.TransferFunction(
832+
[
833+
[[2], [1]],
834+
[[1], [3]],
835+
],
836+
[
837+
[[1, 0], [1, 0]],
838+
[[1, 0], [1, 0]],
839+
],
840+
),
841+
],
842+
[
843+
ctrl.TransferFunction(
844+
[
845+
[[2], [1], [1]],
846+
[[1], [3], [2]],
847+
],
848+
[
849+
[[1, 0], [1, 0], [1, 0]],
850+
[[1, 0], [1, 0], [1, 0]],
851+
],
852+
),
853+
ctrl.TransferFunction(
854+
[
855+
[[2], [1]],
856+
[[1], [3]],
857+
],
858+
[
859+
[[1, 0], [1, 0]],
860+
[[1, 0], [1, 0]],
861+
],
862+
),
863+
],
864+
],
865+
ValueError,
866+
),
818867
],
819868
)
820869
def test_error_combine_tf(self, tf_array, exception):

0 commit comments

Comments
 (0)