diff --git a/test/test_operation.py b/test/test_operation.py index f07a751e89df66c308bff1d99a8180a1f4217bcf..1b940d5a9c890fd45d83015d98e152c5e4963155 100644 --- a/test/test_operation.py +++ b/test/test_operation.py @@ -183,7 +183,7 @@ class TestExecutionTime: def test_set_execution_time(self): bfly = Butterfly() - bfly.set_exection_time(3) + bfly.exection_time = 3 assert bfly.execution_time == 3 @@ -208,7 +208,7 @@ class TestCopyOperation: class TestPlotCoordinates(): def test_simple_case(self): cmult = ConstantMultiplication(0.5) - cmult.set_exection_time(1) + cmult.execution_time = 1 cmult.set_latency(3) lat, exe = cmult.get_plot_coordinates() @@ -217,7 +217,7 @@ class TestPlotCoordinates(): def test_complicated_case(): bfly = Butterfly(latency_offsets={'in0': 2, 'in1': 3, 'out0': 5, 'out1': 10}) - bfly.execution_time(7) + bfly.execution_time = 7 lat, exe = bfly.get_plot_coordinates() assert lat == [[2, 0], [2, 0.5], [3, 0.5], [3, 1], [10, 1], [10, 0.5], [5, 0.5], [5, 0], [2, 0]] @@ -227,7 +227,7 @@ class TestPlotCoordinates(): class TestIOCoordinates(): def test_simple_case(self): cmult = ConstantMultiplication(0.5) - cmult.set_exection_time(1) + cmult.execution_time = 1 cmult.set_latency(3) i_c, o_c = cmult.get_io_coordinates() @@ -236,7 +236,7 @@ class TestIOCoordinates(): def test_complicated_case(): bfly = Butterfly(latency_offsets={'in0': 2, 'in1': 3, 'out0': 5, 'out1': 10}) - bfly.set_execution_time(7) + bfly.execution_time = 7 i_c, o_c = bfly.get_io_coordinates() assert i_c == [[2, 0.25], [3, 0.75]]