mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
modified test to avoid negative dimIndex
This commit is contained in:
parent
3ec00c3dd3
commit
3c81504d07
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ public class CapacityTest {
|
|||
@Test
|
||||
public void whenSettingRandomNuOfCapDimension_nuOfDimensionMustBeCorrect(){
|
||||
Random rand = new Random();
|
||||
int nuOfCapDimensions = rand.nextInt(100);
|
||||
int nuOfCapDimensions = 1+rand.nextInt(100);
|
||||
Capacity.Builder capBuilder = Capacity.Builder.newInstance();
|
||||
capBuilder.addDimension(nuOfCapDimensions-1, 4);
|
||||
Capacity cap = capBuilder.build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue