Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AboudyKreidieh committed Jun 10, 2020
1 parent 16ffacf commit 516af3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fast_tests/test_scenarios.py
Expand Up @@ -144,13 +144,14 @@ def test_ghost_edge(self):
"speed_limit": 30,
"num_edges": 1,
"use_ghost_edge": True,
"ghost_speed_limit": 25
"ghost_speed_limit": 25,
"boundary_cell_length": 300,
})
)
env.reset()

# check the network length
self.assertEqual(env.k.network.length(), 1500.1)
self.assertEqual(env.k.network.length(), 1300.1)

# check the edge list
self.assertEqual(env.k.network.get_edge_list(),
Expand Down
3 changes: 3 additions & 0 deletions tests/fast_tests/test_vehicles.py
Expand Up @@ -336,6 +336,7 @@ def test_no_junctions_highway(self):
"num_edges": 1,
"use_ghost_edge": False,
"ghost_speed_limit": 25,
"boundary_cell_length": 300,
}
net_params = NetParams(additional_params=additional_net_params)
vehicles = VehicleParams()
Expand Down Expand Up @@ -406,6 +407,7 @@ def test_no_junctions_highway(self):
"num_edges": 3,
"use_ghost_edge": False,
"ghost_speed_limit": 25,
"boundary_cell_length": 300,
}
net_params = NetParams(additional_params=additional_net_params)
vehicles = VehicleParams()
Expand Down Expand Up @@ -475,6 +477,7 @@ def test_no_junctions_highway(self):
"num_edges": 3,
"use_ghost_edge": False,
"ghost_speed_limit": 25,
"boundary_cell_length": 300,
}
net_params = NetParams(additional_params=additional_net_params)
vehicles = VehicleParams()
Expand Down

0 comments on commit 516af3f

Please sign in to comment.