Skip to content
Snippets Groups Projects
Commit 4fb454f7 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Fixed typos

parent ff373483
Branches
Tags
2 merge requests!71Better schedule, including plotting,!69Some basic functionality for plotting a schedule
Pipeline #16675 failed
......@@ -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]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment