Skip to content

Commit

Permalink
fix minor bug in size mismatch
Browse files Browse the repository at this point in the history
Took 3 minutes
  • Loading branch information
Nikronic committed Oct 4, 2019
1 parent 15fbd9a commit 6ea9e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_initialize_routing(supply_population, supply_chromosome, supply_depot):
def test_randomize_customers(supply_chromosome):
di = random.randint(0, supply_chromosome.len()-1)
l: int = supply_chromosome[di].len()
c = supply_chromosome[di][math.ceil(supply_chromosome.len() / 2)]
c = supply_chromosome[di][math.ceil(supply_chromosome[di].len() / 2)]
ic = supply_chromosome[di].index(c)
F.randomize_customers(supply_chromosome)
assert supply_chromosome[di].len() == l
Expand Down

0 comments on commit 6ea9e4d

Please sign in to comment.