@@ -16,7 +16,7 @@ def test_basic():
1616 instance = spyrrow .StripPackingInstance (
1717 "test" , strip_height = 2.001 , items = [rectangle1 , triangle1 ]
1818 )
19- config = spyrrow .StripPackingConfig (early_termination = False ,total_computation_time = 60 ,num_wokers = 3 ,seed = 0 )
19+ config = spyrrow .StripPackingConfig (early_termination = False ,total_computation_time = 60 ,num_workers = 3 ,seed = 0 )
2020 sol = instance .solve (config )
2121 assert sol .width == pytest .approx (4 ,rel = 0.05 )
2222
@@ -34,7 +34,7 @@ def test_early_termination():
3434 instance = spyrrow .StripPackingInstance (
3535 "test" , strip_height = 2.001 , items = [rectangle1 , triangle1 ]
3636 )
37- config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 600 ,num_wokers = 3 ,seed = 0 )
37+ config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 600 ,num_workers = 3 ,seed = 0 )
3838 sol = instance .solve (config )
3939 assert sol .width == pytest .approx (4 ,rel = 0.05 )
4040
@@ -50,15 +50,15 @@ def test_zero_demand():
5050 instance = spyrrow .StripPackingInstance (
5151 "test" , strip_height = 2.001 , items = [triangle1 ]
5252 )
53- config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_wokers = 3 ,seed = 0 )
53+ config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_workers = 3 ,seed = 0 )
5454 sol = instance .solve (config )
5555 assert sol .width == pytest .approx (1 ,rel = 0.05 )
5656
5757def test_no_items ():
5858 instance = spyrrow .StripPackingInstance (
5959 "test" , strip_height = 2.001 , items = []
6060 )
61- config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_wokers = 3 ,seed = 0 )
61+ config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_workers = 3 ,seed = 0 )
6262 sol = instance .solve (config )
6363 assert sol .width == 0
6464 assert sol .density == 0
@@ -75,7 +75,7 @@ def test_one_item():
7575 instance = spyrrow .StripPackingInstance (
7676 "test" , strip_height = 2.001 , items = [triangle1 ]
7777 )
78- config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_wokers = 3 ,seed = 0 )
78+ config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_workers = 3 ,seed = 0 )
7979 sol = instance .solve (config )
8080 assert sol .width == pytest .approx (1 ,rel = 0.05 )
8181
@@ -90,7 +90,7 @@ def test_one_demand():
9090 instance = spyrrow .StripPackingInstance (
9191 "test" , strip_height = 2.001 , items = [triangle1 ]
9292 )
93- config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_wokers = 3 ,seed = 0 )
93+ config = spyrrow .StripPackingConfig (early_termination = True ,total_computation_time = 60 ,num_workers = 3 ,seed = 0 )
9494 sol = instance .solve (config )
9595 assert sol .width == pytest .approx (math .cos (math .radians (45 )),rel = 0.05 )
9696
0 commit comments